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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Retaining certain values so they can be compared against

Hello,

I'm trying to get certain values to remain within a chart with others being optional to add or remove via a slicer.

My data looks like this:

AreaData 1

Data 2

Data 3
Fixed area 11233253221343245
Fixed area 2321435226343221512
Fixed area 332434232532
optional area 1324532546233253
optional area 23422342332432423

 

Is it possible to keep fixed areas 1, 2 and 3 to remain so the user cannot remove them while optional areas 1 and 2 can be changed?

 

Thanks in advance for your help!

1 ACCEPTED SOLUTION
Russell-PBI
Resolver II
Resolver II

Hi @Anonymous, try this: https://drive.google.com/file/d/1-2UHhq7J4C5Y0csqQCrr3nJMhX12DJVt/view?usp=sharing

 

Add a new flag to identify the fixed areas and add a new table for just the optional area values, then use the 'Show Area' measure as a 'greater than 0' filter on your visual:

Show Area = 
CALCULATE(
COUNTROWS('Table')
,
'Table'[Fixed Flag] = TRUE()
||
ISFILTERED('Optional Area'[Optional Area]) = TRUE()
&&
'Table'[Area] IN ALLSELECTED('Optional Area'[Optional Area])
, 'Table'[Area] = SELECTEDVALUE('Table'[Area])
)

RussellPBI_0-1645317802852.png

 

Feels fairly wonky, but if it works, it works. Remember to lock and hide the filter, so it can't be removed.

View solution in original post

4 REPLIES 4
Russell-PBI
Resolver II
Resolver II

Hi @Anonymous, try this: https://drive.google.com/file/d/1-2UHhq7J4C5Y0csqQCrr3nJMhX12DJVt/view?usp=sharing

 

Add a new flag to identify the fixed areas and add a new table for just the optional area values, then use the 'Show Area' measure as a 'greater than 0' filter on your visual:

Show Area = 
CALCULATE(
COUNTROWS('Table')
,
'Table'[Fixed Flag] = TRUE()
||
ISFILTERED('Optional Area'[Optional Area]) = TRUE()
&&
'Table'[Area] IN ALLSELECTED('Optional Area'[Optional Area])
, 'Table'[Area] = SELECTEDVALUE('Table'[Area])
)

RussellPBI_0-1645317802852.png

 

Feels fairly wonky, but if it works, it works. Remember to lock and hide the filter, so it can't be removed.

Anonymous
Not applicable

Thank you so much! Is there any way you could share the pbix file? I'm struggling to replicate

Check out the link in my post 😉

Anonymous
Not applicable

Perfect thanks again, I got it to work!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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