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

Measure value will filter measure in visual

Hi, Is there an easier way to this. Let's say I have a measure called checker and have a simple table visual which includes columns from a table called example (columns: name and user activity)

 

So basically if checker is equal to 1, the user activity equals all values. While if it is 0, the user activity only equals "Active"


I made a measure as a placeholder for the user activity:

Active checker =
var activevalue = Values(example[user activity])
RETURN
IF([checker]=1,activevalue,user activity should only be "active")

Can anyone help me, I've been stuck with this measure for quite some time now. Thank you.
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, when the measure checher is 1, you want to filter the visual for user activity to show active rows only. Here's my solution.

Create a measure:

 

Flag =
IF ( [checker] = 1 && MAX ( example[user activity] ) = "active", 1, 0 )

 

Put the measure in the visual filter and select its value to1.

vkalyjmsft_0-1663750522959.png

After apply filter, get the result.

vkalyjmsft_1-1663750566713.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

6 REPLIES 6
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, when the measure checher is 1, you want to filter the visual for user activity to show active rows only. Here's my solution.

Create a measure:

 

Flag =
IF ( [checker] = 1 && MAX ( example[user activity] ) = "active", 1, 0 )

 

Put the measure in the visual filter and select its value to1.

vkalyjmsft_0-1663750522959.png

After apply filter, get the result.

vkalyjmsft_1-1663750566713.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

Greg_Deckler
Community Champion
Community Champion

@Anonymous So like this?

Active checker =
IF([checker]=1,"All","Active")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yes, but that will just return a measure value of "all" or "active", I want to filter the measure that acts like a column based on what the values are. I'm not sure if that's doable or a measure acting as a filter is doable in a table visual containing columns from a table.

@Anonymous Just put your measure in your Visual Filters in the Visual pane and filter for either "All" or "Active". For that matter, you could use your checker measure that way.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

That technically is not filtering the table I want to filter, since there is connection between the measure and the visual table columns

@Anonymous That greatly depends. You haven't provided any sample data or how your visual is configured so it's impossible for me to know. I use this technique all the time, it is called a Complex Selector: https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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!

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