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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Wattar
Helper I
Helper I

Filter a dimension based on an another in a slicer

Hello,

 

I have 2 dimensions years and versions: versions are made as V_'Year'. On my dashboard, I have a sclicer of years, and I want the graphs to be filtered on the version corresponding to that year:

version = concatenate("V_", selected year in slicer).

 

Thanks for you help 

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

@Wattar 

You need to use the measure in your visual to filter the second slicer using the filter for this visual in the filter pane. 
for example, say you are using a [sum of sales] in your visual. 
Select the second slicer, go to the filter pane, and add the [sum of sales] to the filters for this slicer and set the value to "is not blank"





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






v-xuding-msft
Community Support
Community Support

Hi @Wattar ,

 

Like this?

I don't quite understand the effect you want to achieve, please provide relevant screenshots.

v-xuding-msft_0-1606291256586.png

 

v-xuding-msft_1-1606291256589.png

 

 

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

@v-xuding-msft 

Yes, exactly. How to acheive that?

Hi @Wattar ,

My sample data.

V-lianl-msft_0-1606468103060.png

 

You just need create two slicers. But please note that their interaction method must be "Filter".

V-lianl-msft_1-1606468103061.png

 

 

Best regards,
Liang

 

Hello @V-lianl-msft , thanks for your response, but versions and years are different dimensions which means two different tables

Hi @Wattar ,

 

" but versions and years are different dimensions which means two different tables"

Only need to create a table relationship between these two tables.

Do you mind sharing your .pbix file? Or show your sample data model.

 

Best regards,
Lionel Chen

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

amitchandak
Super User
Super User

@Wattar ,

Try a measure like

measure  =

var _ver = allselelcted(Table[Version])

return

calculate(coutrows(table), filter(Table, Table[Version] in _var))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  thanks for your reply, but I don't see the link with the dimension years

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors