Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Good morning Power BI community!
I have been running through some problems creating the correct measure, and I'm wondering if you guys can help.
I have a table that goes like this:
I created a measure which is a count distinct of books per writer per publishing house.
Now, what I would like to do is to create a measure which is a distinct count of books per publishing house and have both the measures in the same table.
The desired table is the following:
Thank you in advance for your suggestions/answers!
Solved! Go to Solution.
Hi @houssamedd,
Try this formula, please. BTW, the first need doesn't need a measure. Try the built-in calculation.
Measure =
CALCULATE (
DISTINCTCOUNT ( Table1[Book] ),
ALLEXCEPT ( Table1, Table1[publishing house] )
)
Best Regards,
Dale
Hi @houssamedd,
Try this formula, please. BTW, the first need doesn't need a measure. Try the built-in calculation.
Measure =
CALCULATE (
DISTINCTCOUNT ( Table1[Book] ),
ALLEXCEPT ( Table1, Table1[publishing house] )
)
Best Regards,
Dale
Perfect, this worked.
Thank you Dale!
| User | Count |
|---|---|
| 52 | |
| 40 | |
| 31 | |
| 24 | |
| 22 |
| User | Count |
|---|---|
| 133 | |
| 115 | |
| 56 | |
| 45 | |
| 40 |