Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a very simple table from excel
| Animal | Food |
| Tiger | Fish |
| Elephant | Veggies |
| Bear | Fish |
| Monkey | |
| Tiger | Combo |
| Elephant | Fish |
| Bear | |
| Monkey | Veggies |
| Tiger | |
| Bear | Fish |
| Tiger |
Using a DistinctCount Measure I am using this
Solved! Go to Solution.
Try this measure:
DC-Animals =
SUMX (
SUMMARIZE ( Sample2, Sample2[Animal], Sample2[Food] ),
CALCULATE ( DISTINCTCOUNTNOBLANK ( Sample2[Animal] ) )
)
Proud to be a Super User!
Try this measure:
DC-Animals =
SUMX (
SUMMARIZE ( Sample2, Sample2[Animal], Sample2[Food] ),
CALCULATE ( DISTINCTCOUNTNOBLANK ( Sample2[Animal] ) )
)
Proud to be a Super User!
Perfect!!
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 29 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 64 | |
| 57 | |
| 40 | |
| 21 | |
| 19 |