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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to prevent a measure to update after a filter to itself on a table (visual)

Hi!

Here's a simplified version of my issue.

I have a table displayed that shows:

 

DATE // Value for that date // (Value - Average)/Average

 

I wanted to only show dates where the 3rd column is over, let's say, 15%. I added the filter to the table and it works fine.

The thing is that now the 3rd column doesn't display the original values. It now displays the values calculated with a new average, that only considers the dates that passed the 15% filter.

 

Is there anyway I can prevent that?

 

Please, be aware I cannot use ALL because I do have a date slicer so the user can determine a period, so the AVG should be calculated by the period determined by that slicer.

 

Thank you!

 

Gustavo

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Assume you have measure value

 

Measure  =

Var _total = calculate([Value], allselected())  //if value if of avg type

// Or Use // calculate(averageX(values('Date'[Date]), [Value]) ,allselected())

return

divide([Value] -_total, _total)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

That's actually how I currently have the measures. Here's the ones I have:

Duration - Average = calculate(AVERAGE('EOD Results'[Duration PBI]), ALLSELECTED('EOD Results'))
Duration - Absolute Deviation = ABS(sum('EOD Results'[Duration PBI]) - 'Calculations'[Duration - Average])
Duration - Abs Dev / Avg = 'Calculations'[Duration - Absolute Deviation]/[Duration - Average]


Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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