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.
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 |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |