Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I have 2 measures and i am creating 3rd measure based on measure1 and measure2. But Measure3 showing wrong total sum.
Measure1 = CALCULATE (
SUM(Table1[AMOUNT]))
Measure2 = has static value 100 for each row
Measure3 = CALCULATE(IF([Measure 3]>[Measure2],[Measure 3],0))
Result is shown below:
Tax Group Measure1 Measure2 Measure3
A 200 100 200
B 300 100 300
C 50 100 0
D 50 100 0
Total ------ ------ --------
600 400 600
Please tell me, how can i show exact total??
Thanks,
Narender
Solved! Go to Solution.
Hi @Narender
Please try this calculated measure
Measure3 = SUMX(VALUES('Table1'[Tax Group]),IF([Measure1]>[Measure2],[Measure1],0))
Hi @Narender
Please try this calculated measure
Measure3 = SUMX(VALUES('Table1'[Tax Group]),IF([Measure1]>[Measure2],[Measure1],0))
Hi Phil,
Thanks a alot. Its working .
Can you please descriibe about your dax expression?
Thanks,
Narender
HI @Narender
In this case, I am using one of the DAX iterator functions. SUMX will loop as many times as there are rows in the table passed as the first argument. This is how I can force the total row to be a sum of a series of smaller calculations, rather than just using the total values from the other columns.
User | Count |
---|---|
103 | |
87 | |
77 | |
70 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |