Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jader3rd
Microsoft Employee
Microsoft Employee

Why is Sum() / SumX() returning a value greater than 100%

I have the Measure 

MeasureP = SUM(ReplFlush[Count]) / SUMX(ALLEXCEPT(ReplFlush,ReplFlush[Failure]), ReplFlush[Count]) and it is returning a Total of 100.0088%. I find that surprising, it should return 100%. What am I missing?

jader3rd_0-1604968950421.png

 

 

1 ACCEPTED SOLUTION

Hi, @jader3rd , indeed, ALLEXCEPT(T, C1, C2...) is tricky,

 

1. When used as a table function, ALLEXCEPT materializes all the unique combinations of the columns in the table specified in the first argument that are not listed in the following arguments;

 

2. When used as a modifier in CALCULATE or CALCULATETABLE, ALLEXCEPT removes the filters from the expanded table specified in the first argument, keeping only the filters in the columns specified in the following arguments.

 

You might to refer to the link for more details.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

3 REPLIES 3
jader3rd
Microsoft Employee
Microsoft Employee

I think that it has to do more with my understanding of when to use ALL vs ALLEXCEPT. Something along the lines of one helps when getting the total for a row vs. the other helps when getting to total for a column.

Hi, @jader3rd , indeed, ALLEXCEPT(T, C1, C2...) is tricky,

 

1. When used as a table function, ALLEXCEPT materializes all the unique combinations of the columns in the table specified in the first argument that are not listed in the following arguments;

 

2. When used as a modifier in CALCULATE or CALCULATETABLE, ALLEXCEPT removes the filters from the expanded table specified in the first argument, keeping only the filters in the columns specified in the following arguments.

 

You might to refer to the link for more details.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

wdx223_Daniel
Super User
Super User

it is a error from floating-point camputation.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.