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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
ritanoori
Resolver I
Resolver I

how to build a slicer in power bi based on other two slicers

Hello,

for some reasons in my working, I must have two months slicers. as you can see in the picture attached, I have Month and Year Slicers that are from Segmentation table. This table has no relationship with any fact table in my PBI working. In addition, I have Month Year Slicer that is coming from Date table that has an active relationship with fact table.

 

What I'm trying to do that if a certain month and year selected in Month and Year Slicers, then this combination will be automatically selected in Month Year Slicer.

 

Thanks =] Capture.PNG

1 REPLY 1
jsh121988
Microsoft Employee
Microsoft Employee

So I'm not sure this can be done, but I'd like to see if the underlying problem can be fixed.

 

  1. The sort order of [Month Year] is wrong:
    1. Create a CalcColumn called [Month Year Sort] with FORMAT([Date],"yyyymm")
    2. Select [Month Year], in the Modeling tab, select sort by [Month Year Sort]
  2. You have multiple relationships to tables that prevent an active relationship from DateTable to SegmentationTable:
    1. Create an inactive relationship
    2. Create measures that use CALCULATE([SomeMeasure], USERRELATIONSHIP(DateDim[Date], Segment[Date]]))

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.