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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BrendenS
Frequent Visitor

One Slicer Selection Filters Another Slicer Selection

Hello Power BI Community,

 

I have two columns which have their own slicers on the dashboard:

AZURE_AUDIT_METRICS[Object]

AZURE_AUDIT_METRICS[Segment]

 

When a team member selects a certain Data Object I would like the Segment slicer to filter to a specific Segment automatically. One Object can have many Segments so we want to highlight (filter for) the most important Segment right away. This is best explained with an example....

 

The user selects Data Object slicer AZURE_AUDIT_METRICS[Object] = "PRA UNIT VENTURE". When this selection is made there are two Segment slicer AZURE_AUDIT_METRICS[Segment] selections available (see screenshot). We want the Segment slicer AZURE_AUDIT_METRICS[Segment] = "UNITVENTURE PUC" to be automatically selected by default when Data Object slicer AZURE_AUDIT_METRICS[Object] = "PRA UNIT VENTURE" is selected.

 

BrendenS_0-1724273237364.png

 

Thank you so much for your assistance!!

 

Brenden

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BrendenS ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1724316028890.png

2.Create the new measure to display default value.

Measure = 
   VAR selectedObject = SELECTEDVALUE('AZURE_AUDIT_METRICS'[Object])
   VAR _segment = SELECTEDVALUE(AZURE_AUDIT_METRICS[Segment])
   RETURN
       IF (
           selectedObject = "PRA UNIT VENTURE" && _segment = "UNITVENTURE PUC",
           1,
           0
       )

3.Drag the object and segment into the slicer visual.

vjiewumsft_1-1724316039137.png

4.Drag the measure into the segment slicer Filters pane. Set the show items is 1.

vjiewumsft_2-1724316069961.png

5.The result is shown below.

vjiewumsft_3-1724316076448.png

 

Best Regards,

Wisdom Wu

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

1 REPLY 1
Anonymous
Not applicable

Hi @BrendenS ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1724316028890.png

2.Create the new measure to display default value.

Measure = 
   VAR selectedObject = SELECTEDVALUE('AZURE_AUDIT_METRICS'[Object])
   VAR _segment = SELECTEDVALUE(AZURE_AUDIT_METRICS[Segment])
   RETURN
       IF (
           selectedObject = "PRA UNIT VENTURE" && _segment = "UNITVENTURE PUC",
           1,
           0
       )

3.Drag the object and segment into the slicer visual.

vjiewumsft_1-1724316039137.png

4.Drag the measure into the segment slicer Filters pane. Set the show items is 1.

vjiewumsft_2-1724316069961.png

5.The result is shown below.

vjiewumsft_3-1724316076448.png

 

Best Regards,

Wisdom Wu

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

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.