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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Multiple slicers control different fields represented in a mixed chart

Hi, 

I have a client request regarding to have two slicer controls, each one can update a calculated measure separately. Two measures is being used in a line and clustered column chart, one used for bars, one for the line.
 
I've created two slicers which are in a hierarchy.
Filter 1: Table[Continent], Table[Country]
Filter 2: Table[Continent], Table[Country], Table[City]
 
I use Filter 1 to control the bars, here is my DAX:
Table[Max Order] =
        IF(
            ISFILTERED(Table[Continent]) ||
            (ISFILTERED(Table[Continent]) && ISFILTERED(Table[Country])),
            CALCULATE(
                MAX(Table[Order]),
                ALL(Table)
            )
I use Filter 2 to control the line:
Table[Average Order] =
        IF(
            ISFILTERED(Table[Continent]) ||
            (ISFILTERED(Table[Continent]) && ISFILTERED(Table[Country])) ||
            (ISFILTERED(Table[Continent]) && ISFILTERED(Table[Country]) && ISFILTERED(Table[City])),
            CALCULATE(
                AVERAGE(Table[Order]),
                ALL(Table)
            )

Expected result:
select the values North America, Canada from Filter 1, select Europe, UK, London from Filter 2. The bars calculate the max order number in Canada, the line gives a trend that represents the average number of orders in London city.


Currently my line and clustered column chart just goes blank, I know there must be a conflict as I selected across two different regions but anyone knows how to deal with this situation?  Thank you!

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.