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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Marit
Helper II
Helper II

Using dynamic slicers with multiple measures behind each category

Hi!

 

I'm trying to create at dynmic slicer with disconnected tables, adding different measures to my line plot.  I have used a dax syntax which worked fine when i only have one measure for each category. However, when i trided to add multiple measures I got no errors, but still no measures is in my plot when I select the category. I tried like this:

 

Kgfor_Foredlingskyllingvalg = VAR LOGICTEST= COUNTROWS(DISTINCT(FILTER(ALLSELECTED('ValgTypeProduksjon'[Type Produksjon]); ValgTypeProduksjon[Type Produksjon] = "Foredlingskylling"))) = 1
RETURN
IF( LOGICTEST;
[Kgfor_Foredlingskylling]
|| [Kgfor_Foredlingskyllingfilter;
BLANK() )
 
Is to possible to have two or more measures behind the category I select in the slicer?
 
Regards Marit
 
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Marit 

 

A measure can only return a single result. Multiple measures need to be added separately.

Community Support Team _ Sam Zha
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
v-chuncz-msft
Community Support
Community Support

@Marit 

 

A measure can only return a single result. Multiple measures need to be added separately.

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors