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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
LucySinclair
New Member

Use a Slicer to show only part of a visual (exclude one column from a filtered visual)

Hi Everyone, 

 

I am fairly new to PowerBI and wondering if the following is possible:

I would like to use a slicer to show client actuals and forecasts - however in the visual I also show the budget for each month (this is not broken down by client.

LucySinclair_0-1713869187204.png

Basically when I filter by client (e.g. ABC) I would like the visual to only show the actual and forecast and not show the budget column as it currently does. (As the total budget is much higher than an individual client's forecast/actual and so you can't see the data labels well when filtered)

Currently looks like this:

LucySinclair_1-1713869343727.png

but would like the filtered view to look like this:

LucySinclair_2-1713869386491.png

While the unfiltered view should still show the budget column too.

 

I hope this makes sense and thank you for your time!

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Thanks for the reply from @amitchandak , please allow me to provide another insight:

Hi  @LucySinclair ,

I created some data:

vyangliumsft_0-1714114421988.png

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    NOT(ISFILTERED('Table'[client])),
    SUM('Table'[Value]),
    SUMX(
        FILTER('Table',
       'Table'[Group] <> "Budget"),[Value]))

2. Result:

The slicer has no selected state:

vyangliumsft_1-1714114449655.png

Slicer selected state:

vyangliumsft_2-1714114449657.png

If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Thanks for the reply from @amitchandak , please allow me to provide another insight:

Hi  @LucySinclair ,

I created some data:

vyangliumsft_0-1714114421988.png

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    NOT(ISFILTERED('Table'[client])),
    SUM('Table'[Value]),
    SUMX(
        FILTER('Table',
       'Table'[Group] <> "Budget"),[Value]))

2. Result:

The slicer has no selected state:

vyangliumsft_1-1714114449655.png

Slicer selected state:

vyangliumsft_2-1714114449657.png

If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

LucySinclair
New Member

Hi @amitchandak , thank you so much for your reply! 

I am having some success with your formula but for some reason it is showing the opposite of what I need - so when my graph is unfiltered the budget shows as 0 and when I filter for a client, then the budget column shows. 

My formula is as follows: 

NewBudget = if(isfiltered('Source Data FY24'[Client]), sum('totals table'[Budget FY24]), blank())
 
I am not sure if there is a way to reverse this - thank you very much for taking the time to reply and your youtube channel looks very helpful too 🙂
amitchandak
Super User
Super User

@LucySinclair , Create you budget measure like

New budget measure on current budget measure

 

Budget new =

if( isfiltered(Client[Client]), [Budget], blank())

 

HasOneValue , Isfiltered: https://www.youtube.com/watch?v=hXg3kRFSGjA&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=38
https://youtu.be/cN8AO3_vmlY?t=10120

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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