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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
prakash11440278
Post Prodigy
Post Prodigy

Measure as visual level filter

Hi All,

I have created a measure where i want to add that measure as visual level filter but it is not returning 1 or 0. If i show the measure in card visual it is returning 0 or 1. But when i dropdown the selection it is not returning any thing. Please help.

 

prakash11440278_0-1643266031459.pngprakash11440278_1-1643266071021.png

 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @prakash11440278 , 

I have tried your Formula. And I have not got issue.

Measure =
VAR _re =
    NOT ISEMPTY ( FILTER ( 'Table', 'Table'[rnr_emailaddress] = USERNAME () ) )
RETURN
    1 * _re

vpollymsft_0-1643785613854.png

It works well. So what is your problem?

 

If I have misunderstood your meaning, please provide your pbix without privacy information and dsired output.

 

Best Regards

Community Support Team _ Polly

 

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

3 REPLIES 3
v-rongtiep-msft
Community Support
Community Support

Hi @prakash11440278 , 

I have tried your Formula. And I have not got issue.

Measure =
VAR _re =
    NOT ISEMPTY ( FILTER ( 'Table', 'Table'[rnr_emailaddress] = USERNAME () ) )
RETURN
    1 * _re

vpollymsft_0-1643785613854.png

It works well. So what is your problem?

 

If I have misunderstood your meaning, please provide your pbix without privacy information and dsired output.

 

Best Regards

Community Support Team _ Polly

 

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

@prakash11440278 , Use count in place Not is empty an then return

 

if(isblank(MineisOktoShow), 0,1)

HI @amitchandak ,

Thanks for your reply.

Below is the error i am getting.

prakash11440278_0-1643269820709.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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