Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I have a table and I had to unpivot some columns as a result some values have been duplicated in Sales Category. Is there any Dax function to avoin to sum sales category 3 times so when a I sum Sales category by category in a table sums 300 and not 900? Thank you so much
Solved! Go to Solution.
why not use max or min to only get 300?
Proud to be a Super User!
Hi @EsterBR ,
If I understand correctly, the issue is that you want to sum Sales category without duplicates. Please try the following methods and check if they can solve your problem:
1.Go to the Modeling tab and select New Measure.
2.Create a measure using the sumx and distinct functions. Enter the following DAX formula.
Sum Without Duplicates =
SUMX(
DISTINCT('Table'[Sales Category]),
CALCULATE(SUM('Table'[Sales Amount]))
)
3.Using the measure in the report to sum the sales amount.
Looking forward to your reply.
Best Regards,
Wisdom Wu
Thanks, but unfortunately it does not work:
Could you ignore the Sales Category Number and just use the Sum of Sales Category when you go to build your visual -
this is assuming that the sub-category isn't missing any Sales figures.
why not use max or min to only get 300?
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
87 | |
85 | |
68 | |
67 | |
64 |
User | Count |
---|---|
210 | |
118 | |
116 | |
81 | |
74 |