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 all, been trying to create either a group by or a distinct sum to represent savings for some data
Example of the data below - the sum of the final cost is 21,000 but i need to also show the 7,000 (as the consolidatedob coumn would be distinct) and the actual amount paid was 7,000;
I've tried a few different ways to do this but it keeps showing me the summarised sum
Solved! Go to Solution.
Hi @andrew260z ,
I created the data:
Here are the steps you can follow:
1. Create measure.
HASONEVALUE =
IF(HASONEVALUE('Table'[date]),MAX('Table'[Final_Cost]),MAX('Table'[Final_Cost]))
2. Result:
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 @andrew260z ,
I created the data:
Here are the steps you can follow:
1. Create measure.
HASONEVALUE =
IF(HASONEVALUE('Table'[date]),MAX('Table'[Final_Cost]),MAX('Table'[Final_Cost]))
2. Result:
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.
@andrew260z , calculate is must in sumx function in case you are not using a measure
FinalCostSum = SUMX(values('TrackingList Archive'[ConsolidatedOB]),calculate(SUM('TrackingList Archive'[Final_Cost])))
Thanks for the suggestion but even with the VALUES instead it returns the sum of all 3 final_cost values (21,000) instead of the 7,000 (value of the final_cost in distinct)
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 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |