Forum Discussion
Lednum861
9 years agoNew Member
Count distinct text in different columns
Hi I'm very new to BI. I have my database setup similar to the table below. I want to use 2 tools in BI. One is a slicer and the other is a visual that counts and provides a total. I know how to use...
bblais
9 years agoResolver III
I would recommend that you pivot your data in the Edit Queries screen, something like this:
The table starts out looking like this:
Select the Part # column ONLY, and then choose Unpivot Other Columns in the Transform Ribbon:
Then it will look like this:
Then rename your columns to Manufacturer and Country and close and apply. Now you can add a measure like this:
Country Count = DISTINCTCOUNT(Manufacturers[Country])
And use this measure in a table or other visual like this: