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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Neha12
Frequent Visitor

Slicer slection should dynamically change the fileds and representation

Hi Everyone, 

I have a slicer with values Change and Problem 

Whenever Change is selected,  data for Change should get populated , same goes with Problem 

But here Change and Problem are two different entites. Change and Problem can have different fields, different visuals, measures.

Change can have 6 KPIs , Problem can have 2 KPIs to display 

How to achieve this dynamic functionality 

I'm not sure if field parameters can help.

Creating two buttons, adding page navigation is the easiest way, but want to achieve it using slicer

Please help

Thanks

@amitchandak @Greg_Deckler @lbendlin @tamerj1 

1 ACCEPTED SOLUTION

Hi @Neha12 ,

Please try below steps:
1. below is my test table

Table:

vbinbinyumsft_0-1666857639994.png

 

Table2:

vbinbinyumsft_1-1666857682287.png

 

2. create a measure with below dax formula

Measure =
VAR cur_type =
    SELECTEDVALUE ( 'Table 2'[Type] )
VAR cur_sale =
    MAX ( [Sales] )
RETURN
    SWITCH (
        cur_type,
        "Change", IF ( cur_sale > 4, 1, 0 ),
        "Problem", IF ( cur_sale <= 4, 1, 0 )
    )

3. add a slicer visual with Table2, add a table visual with Table, then add measure to the filter pane for table visual.

vbinbinyumsft_2-1666857854338.png

Animation5.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
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-binbinyu-msft
Community Support
Community Support

Hi @Neha12 ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_ Binbin Yu

Hi, 

I have two different tables as Change and Problem. Both having bit adifferent information

I have prepared two reports one for change and Problem. Now instead for two reports 

I want a slicer that has this two values change and Problem,  so whenever user selects change, data related to change should get populated, same goes for Problem 

No need of creating two different pages , a slicer should provide the need

 

I hope this clear the info

If not please tell me

 

Thanks

Hi @Neha12 ,

Please try below steps:
1. below is my test table

Table:

vbinbinyumsft_0-1666857639994.png

 

Table2:

vbinbinyumsft_1-1666857682287.png

 

2. create a measure with below dax formula

Measure =
VAR cur_type =
    SELECTEDVALUE ( 'Table 2'[Type] )
VAR cur_sale =
    MAX ( [Sales] )
RETURN
    SWITCH (
        cur_type,
        "Change", IF ( cur_sale > 4, 1, 0 ),
        "Problem", IF ( cur_sale <= 4, 1, 0 )
    )

3. add a slicer visual with Table2, add a table visual with Table, then add measure to the filter pane for table visual.

vbinbinyumsft_2-1666857854338.png

Animation5.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors