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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sudhav
Helper V
Helper V

one column in a chart should not react to slicers

I have a column chart of countries population data of 3 years (2018,2019,2020) and a slicer, if i select one country from slicer, as we know that  population values will change in visual, but here i need to apply visual filter which has to  keep 2019 year column data should be constant and remains two years 2018,2020 should change according to slicer selection, how its possible. thankyou in advance. please reply me

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @sudhav 

 

Is this what you want? You need to create a measure like below to calculate the result based on different years. Use it in the column chart as values field. 

Measure =
IF (
    SELECTEDVALUE ( 'Table'[Year] ) = 2019,
    CALCULATE ( SUM ( 'Table'[Population] ), ALL ( 'Table'[Country] ) ),
    SUM ( 'Table'[Population] )
)

22020302.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

5 REPLIES 5
v-jingzhang
Community Support
Community Support

Hi @sudhav 

 

Is this what you want? You need to create a measure like below to calculate the result based on different years. Use it in the column chart as values field. 

Measure =
IF (
    SELECTEDVALUE ( 'Table'[Year] ) = 2019,
    CALCULATE ( SUM ( 'Table'[Population] ), ALL ( 'Table'[Country] ) ),
    SUM ( 'Table'[Population] )
)

22020302.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Ya, it is working sir, but i need to get it in visual level filter only , not by using measure, is it possible sir??

 please let me know if it is possible?? 

Thankyou in advance

Hi @sudhav 

 

I'm afraid it is not possible to keep one column fixed without using measures. The visual level filter is applied to the whole visual. We need to use some filter functions in measures to get results that are not affected by some filters. 

 

Regards,

Jing

ok thankyou 

edhans
Super User
Super User

When the users selects a slicer, it filters the data. That is why columns disappear - the measures return blanks (2019 is filtered out for example).

You can modify the measure to ignore the filter. CALCULATE([Some Measure], REMOVEFILTERS('Date'[Year])) for example.

Or, you can create a shadow date table and you use those columns in the chart but filter the actual data. 




Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors