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

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

Reply
maruthi
Frequent Visitor

Display dynamic measures based on slicer/filter seelctions

Dear All,

 

I have bar graph where it should display different measures based on filter/slicer selection. 

 

Data model looks like:

 

1. Dimension_Region

2. Fact_sales

 

Slicer Data which comes from Dimension_Region and looks like below:

--> Select All

--> Asia

--> America

--> Europe

 

case-1: When "Select All" option selected in the filters/slicers, then it should display "Measure1".

case-2: When remaining option selected in the filters/slicers, then it should display "Measure2"

 

 

Please help me how to write DAX expression to implement? Thanks in advance.

 

Kind Regards,

Maruthi

 

 

 

1 ACCEPTED SOLUTION
vega
Resolver III
Resolver III

You'd want to do something like this:

 

Measure :=
IF(
    ISFILTERED(Dimension_Region),
    [Measure2],
    [Measure1]
)

Where Dimension_Region is replaced with the column that the slicer is getting its data.

View solution in original post

4 REPLIES 4
vega
Resolver III
Resolver III

You'd want to do something like this:

 

Measure :=
IF(
    ISFILTERED(Dimension_Region),
    [Measure2],
    [Measure1]
)

Where Dimension_Region is replaced with the column that the slicer is getting its data.

Will this also work on a table/matrix visual?

maruthi
Frequent Visitor

Hi vega,

I tried but no luck 😞

Error.JPG

 

Above is the error I got it.

You are missing a closing parenthesis after [regions]

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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