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 August 31st. Request your voucher.
x, y and z are measures.
Z = if (x > 50%, y, 0)
Instead of the IF statement being applied to the total, I want to sum column Z.
Any advice on where to start?
Solved! Go to Solution.
Z=
SUMX (
VALUES ( your slicing by column ), CALCULATE ( IF ( [X] > 0.5, [Y], 0 ) )
)
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
6 |