Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe 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
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
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
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
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.
Please try
Has "Yes"? =
IF (
ISEMPTY (
FILTER ( VALUES ( TableName[ColumnName] ), TableName[ColumnName] = "Yes" )
),
"NO",
"YES"
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 34 | |
| 33 | |
| 30 |