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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

ALL () function not working as expected

Hi,

 

I've tried searching but couldn't find the solution

 

I have a calculated measure calculating refund % sales in table 1. In table 2 I have an IND for a category (1 or 0).

% measure = calculate(table1[refund value]) / calulate(table1(sale value), all(table2[IND])

 

I have a bookmark on the report page applying a page filter to turn the IND column to 1, however when I do this my % sales measure is applying the IND measure so giving me infinity for most of my values. I wouldn't expect the IND measure to be applied because of the ALL function. 

 

Help please! 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Nevermind, 

 

I've solved it. 

 

I had a seperate IS NOT filter from table2[unrelated_col2] filtering on the report page. I've no idea why this affected my % sales measure because the sum(table1[sales value]) will always comply with the IS NOT filter on the page but it was...

 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try ALL( table2 ) instead 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

Anonymous
Not applicable

Nevermind, 

 

I've solved it. 

 

I had a seperate IS NOT filter from table2[unrelated_col2] filtering on the report page. I've no idea why this affected my % sales measure because the sum(table1[sales value]) will always comply with the IS NOT filter on the page but it was...

 

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors