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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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))

 

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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