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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Year and location name on the same slicer?

I have a report, with a requirement to show a 'radio button' filter with columns from 2 different dimensiones...

 

It should look like this:

2021
2022
2023
2024
Location 1
Location 2
Location 3

 

 

So, I have a slicer that shall have both Year from Time dimension and Name from Location dimension...

 

How can I achieve this? (I have suggested to have 2 different slicers, but unfortunately I must do it in only one slicer...) 

 

ps: is it doable? what are my options? I am even willling to create new tables to achieve it.

4 REPLIES 4
Anonymous
Not applicable

it only seems to work if I also add either Table'[Year]) or ('Table'[Location])  to the table... If none of them appear it doesnt work...

 

I dont want to include them in the table visual

Hi, @Anonymous 

Currently, it is difficult to create such a radio button using fields from two different dimension tables. Integrating data is the most straightforward approach.
For your last question, I suggest you recheck my attachment.

The data in the table visual is filtered normally even if the year and location are not added to the table.

 

veasonfmsft_0-1667353307545.png

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

you have year and location in the same table, as I mentioned in my case they are in the dimensions...

v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Please try following steps:

1.Add a calculated table

Table 2 = UNION(VALUES('Table'[Year]),VALUES('Table'[Location]))

2. Rename Table2[Year] to Table2[Value] and add it to the slicer

veasonfmsft_0-1667281397334.png

3. Create custom measure 'filter' and apply it to each visual filter pane

filter = 
VAR a =
    IF (
        MAX ( 'Table'[Location] )
            IN VALUES ( 'Table 2'[Value] )
                || FORMAT ( MAX ( 'Table'[Year] ), "General Number" )
                    IN VALUES ( 'Table 2'[Value] ),
        1,
        0
    )
RETURN
    IF ( ISFILTERED ( 'Table 2'[Value] ), a, 1 )

veasonfmsft_1-1667281564171.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.