The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi!
Im trying to make different distinctcounts with measures based on the same column and its 3 values, im trying to count the rows by an ID column, and made a count for each one of the values and also one for blank rows. The thing is, when adding up all these counts it doesnt coincide with the total count, here i give you de different measures:
when adding upp the four measures, the total is +10 than the total count, anybody has a clue of why this is happening?
Thanks in advance
hi @ZakariAK ,
Region | Product |
East | A |
East | B |
West | A |
What would be a correct way of counting the values without counting ID duplicates then?
This is a sample of the data:
hi @ZakariAK ,
first of all, that is not advisible. if you insist, with data table in my previous post, try like:
measure =
SUMX(
VALUES(data[region]),
CALCULATE(DISTINCTCOUNT(data[product]))
)
it worked like:
Hi FreemanZ,
Could you please extrapolate it to the sample I gave you? Thanks in advance
try like:
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |