Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
i have two measures (simply filtered sum), if i put these in a table i cant see total of a measure.
They are formatting like "decimal number"
Why?
Thanks
Solved! Go to Solution.
Hi @Anonymous
I can reproduce your problem.
It can be fixed with [Meausre 3], [Measure 4]
Measure = IF(SUM(Table1[value1])>SUM(Table2[value2]),SUM(Table1[value1])-SUM(Table2[value2])) Measure 2 = IF(SUM(Table1[value1])<=SUM(Table2[value2]),SUM(Table2[value2])-SUM(Table1[value1])) Measure 3 = IF(HASONEVALUE(Table1[id]),[Measure],SUMX(ALL(Table1[id]),[Measure])) Measure 4 = IF(HASONEVALUE(Table1[id]),[Measure 2],SUMX(ALL(Table1[id]),[Measure 2]))
Hi @Anonymous
I can reproduce your problem.
It can be fixed with [Meausre 3], [Measure 4]
Measure = IF(SUM(Table1[value1])>SUM(Table2[value2]),SUM(Table1[value1])-SUM(Table2[value2])) Measure 2 = IF(SUM(Table1[value1])<=SUM(Table2[value2]),SUM(Table2[value2])-SUM(Table1[value1])) Measure 3 = IF(HASONEVALUE(Table1[id]),[Measure],SUMX(ALL(Table1[id]),[Measure])) Measure 4 = IF(HASONEVALUE(Table1[id]),[Measure 2],SUMX(ALL(Table1[id]),[Measure 2]))
It works!
Thanks!
Hi @Anonymous ,
can you share the formula for these measures?
Regards,
LC
Hi @Anonymous ,
the reason is that your formula also applies to the total.
For Total, 'tempo bollato' is higher than 'ore di presenza', so only your first formula gets calculated and not the second one.
If possible with your data model, the easiest way to fix this is to move your formula from a calculated measure to a calculated column. With a calculated column:
- the formula is calculated for each row
- the total is a sum of the rows
You can create a calculated column by going to Modeling -> New Column
Let me know if this works for you.
Regards,
LC
Interested in Power BI finance templates? Check out my blog at www.finance-bi.com
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |