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
Macdavel
New Member

Using measure aggregate in row level calculations

I would like to calculate a ratio on my table and then use the resulting ratio in other calculations at the row level (Calculated column). The measure aggregates correctly but  when I use it in a row level calculation, it recalculates the ratio for that particular row. Is there a way to force a measure to calculate at the table level aggregation at the row level while still keeping it responsive to page level filters (i.e without using ALL/ALLEXCEPT)?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

The first thing i think needs to be asked:

How do you expect a calculated column to take into account "Page Level Filters"?  Remember, calculated columns are calculated as part of the data refresh and are independant of Report, Page, and Visual level filters.

View solution in original post

v-sihou-msft
Microsoft Employee
Microsoft Employee

@Macdavel

 

@Anonymous is correct. The visual, page, report level filter just control the context we populated in visual. However, measure evalulates the calculation based on current context, which is row level in your scenario. It has nothing to do with visual, page, report level filters. To force a measure to calculate at the table level aggregation, you have to use ALL() function.

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Macdavel

 

@Anonymous is correct. The visual, page, report level filter just control the context we populated in visual. However, measure evalulates the calculation based on current context, which is row level in your scenario. It has nothing to do with visual, page, report level filters. To force a measure to calculate at the table level aggregation, you have to use ALL() function.

 

Regards,

Anonymous
Not applicable

The first thing i think needs to be asked:

How do you expect a calculated column to take into account "Page Level Filters"?  Remember, calculated columns are calculated as part of the data refresh and are independant of Report, Page, and Visual level filters.

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.