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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
PowerHelp45
New Member

Evaluate A Column for Yes, If a single Yes is present, Write the YES in a card Not Count

So hoping someone can provide some assistance here.  I have a column, that has either Yes or null as the value and in most cases its null.  What I would like to do is evaulate that column, if there is a "Yes" anywhere in the column whether its 1,50 or 10,000, I want it to write YES as the value in a card.  If the value is null for all entries then I want it to write NO.   I'm trying to identify on a dashboard whether or not something is present/happened at all.  The count is not relevant, the only thing relevant is if something happened or not. 

 

Thanks, apprciate the help

5 REPLIES 5
v-luwang-msft
Community Support
Community Support

Hi @PowerHelp45 ,


Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @PowerHelp45 ,

Could you pls share sample data and expected output.

there is a "Yes" anywhere in the column whether its 1,50 or 10,000, I want it to write YES as the value in a card.  

 like the below?

column:

150

10000

null

 

output:

Yes

Yes 

null

 

 

Best Regards

Lucien

tamerj1
Community Champion
Community Champion

Hi @PowerHelp45 

you can try something like 

IF ( ISEMPTY ( VALUES ( TableName[ColumnName] ) ), "NO", "YES" )

otherwise we can add FILTER. First let me know if this works with you or not. 

Thanks for the reply!  So it seems to produce a YES under all conditions.  I attempted to replace null on the backend souce in the event the null was messing with the ISEMPTY.  No luck.

@PowerHelp45 

Please try

Has "Yes"? =
IF (
    ISEMPTY (
        FILTER ( VALUES ( TableName[ColumnName] ), TableName[ColumnName] = "Yes" )
    ),
    "NO",
    "YES"
)

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.