Forum Discussion
Count only single cells in Power Query
- 2 years ago
For Power Query, you'll need to grab just column B and Column E, select both columns by holding CTRL or Shift while clicking, then Remove Rows > Remove Duplicates
then go to Transform > Count Rows. You can close and apply after that.
You can also do it in DAX. Load in your data as normal (after applying any transformations that you already had), then use the following measure:
Unique Combinations = COUNTROWS(DISTINCT(SELECTCOLUMNS('Table', 'Table'[Column B], 'Table'[Column E])))
For Power Query, you'll need to grab just column B and Column E, select both columns by holding CTRL or Shift while clicking, then Remove Rows > Remove Duplicates
then go to Transform > Count Rows. You can close and apply after that.
You can also do it in DAX. Load in your data as normal (after applying any transformations that you already had), then use the following measure:
Unique Combinations = COUNTROWS(DISTINCT(SELECTCOLUMNS('Table', 'Table'[Column B], 'Table'[Column E])))