Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I'm using this measure : SUMX ( Top5Cust, [@SalesofALL] ) in order to sum all sales values of the Top5 product but this formula only works when the values are positive, It doesn't work for positive and/or negative values.
Can someone help me please?
Thanks!
Solved! Go to Solution.
If you follow the method I posted in the other thread
https://community.powerbi.com/t5/Desktop/Top-N-others-and-null-values/td-p/2817483
(note, I had to edit one of the measures to get the correct value for "Other")
it should work with negative numbers:
Sample PBIX file
Proud to be a Super User!
Paul on Linkedin.
I take it this is related to this other thread (in which I just posted a possible solution btw)
https://community.powerbi.com/t5/Desktop/Top-N-others-and-null-values/m-p/2819686#M974780
To ba able to help with your request in this thread, we need to understand the structure of the data. So a non-confidential sample is needed (you can copy and paste from Excel for example), or you can upload a non-confidential PBIX file to OneDrive, DropBox, Google Drive, iCloud or WeTransfer
Proud to be a Super User!
Paul on Linkedin.
My matrix looks like this: The OTHER value is the rest of sales value of the TOPN and it calculated by (Grand Total - sum of all TopN values). This is the result I'm expecting:
The issue is, when some value is negatif, the SUMX of TopN doesn't work. I got the following result:
The SUMX Does not consider the negative value of D
If you follow the method I posted in the other thread
https://community.powerbi.com/t5/Desktop/Top-N-others-and-null-values/td-p/2817483
(note, I had to edit one of the measures to get the correct value for "Other")
it should work with negative numbers:
Sample PBIX file
Proud to be a Super User!
Paul on Linkedin.
Yes it's working. Thanks so much for your help
Please provide sample non-confidential data or a link to a PBIX file in a cloud service
Proud to be a Super User!
Paul on Linkedin.
I don't find the way to attach a PBIX from here.
This is my sale measure for TopN:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.