Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello All,
I have created a simple measure to calculate margin value (Total sales - total cost). However, for a few lines, it gives weird results.
An example is below in blue that my Dax measure produces with the expected outcome in green.
Solved! Go to Solution.
Hi @AbbasG ,
Does your data contain data with the same column and different values:
When placed on a Visual, the same [Model] is aggregated together.
If you use the Max() function in your Measure, the maximum value of each [Model] will be taken, not the total aggregate value.
You can use the Sum() function to get the aggregate value:
Sum_Measure =
SUM('Table'[Value1]) - SUM('Table'[Value2])
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @AbbasG ,
Does your data contain data with the same column and different values:
When placed on a Visual, the same [Model] is aggregated together.
If you use the Max() function in your Measure, the maximum value of each [Model] will be taken, not the total aggregate value.
You can use the Sum() function to get the aggregate value:
Sum_Measure =
SUM('Table'[Value1]) - SUM('Table'[Value2])
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I have added new column with simple DAX you have mentioned above and it is giving correct result. Plz refer screenshot given below. If still you are facing same issue please check if you have applied any filter to grid or not.
Thanks.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
120 | |
110 | |
59 | |
57 |