'QuickSight - count distinct of two columns

I need help with figuring out how to perform count distinct over two columns in QuickSight - find the number of unique combinations of values from two columns. Example below would result in 4

column1 center
apple 87
apple 87
banana 34
blueberry 45
blueberry 32


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source