Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi everyone.
I have a spreadsheet that counts how many times a name appears in a listing and also counts how many times a conditional is listed. For example:
A | Yes |
A | Yes |
A | Yes |
B | Yes |
B |
In this case, the expected result is:
A | 3 times |
B | 1 time |
In Excel it's perfect. But I couldn't replicate that in Power BI (I think it was the recent vacation effect).
Solved! Go to Solution.
Hi @LeandroCampacci,
You can use create a table visual with the category field and write a measure formula for counting calculations.
Measure =
CALCULATE (
COUNTA ( Table[Category] ),
FILTER ( ALLSELECTED ( Table ), [Status] = "Yes" ),
VALUES ( Table[Category] )
)
Regards,
Xiaoxin Sheng
Hi @LeandroCampacci,
You can use create a table visual with the category field and write a measure formula for counting calculations.
Measure =
CALCULATE (
COUNTA ( Table[Category] ),
FILTER ( ALLSELECTED ( Table ), [Status] = "Yes" ),
VALUES ( Table[Category] )
)
Regards,
Xiaoxin Sheng
Hi, try
calculate(count([Lettercolumn]),[listing column]="Yes")
User | Count |
---|---|
84 | |
71 | |
71 | |
67 | |
55 |
User | Count |
---|---|
94 | |
92 | |
91 | |
77 | |
70 |