cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
jader3rd
Microsoft
Microsoft

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
Microsoft

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors