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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DavidM6051
Regular Visitor

Probably a simple answer...

Hi Power-Bi Community,

I have a question that probably has a really simple answer... but I appreciate anyones help with this!

So, if I have a colmun of activities and another coumn of values (which are the hours it took to complete the activity.

In the value column I have blanks, 0's and then values higher then 0

I want to create a new measure (either by Quick Measure or a DAX) to show True or False (True if there is any value higher then 0 and blanks. False if the value is actually 0 or blank).

How can I create this measure?

1 ACCEPTED SOLUTION

The BLANK() function is considered as 0 as well.

 

you can write this way also

TrueOrFalse = IF(TABLE[Value] > 0 , "True" , "False")

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @DavidM6051 ,

I created a simplified pbix file(see the attachment), please find the details in it. You can create a measure as below to get it:

Measure = IF ( SUM ( 'Table'[value] ) + 0 = 0, "False", "True" )

yingyinr_1-1668391517435.png

Best Regards

aj1973
Community Champion
Community Champion

Hi @DavidM6051 

TrueOrFalse = IF(TABLE[Value] <> BLANK() , "True" , "False")

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Thanks @aj1973 

What if I wanted to include any '0' and any 'blanks' as a False?

The BLANK() function is considered as 0 as well.

 

you can write this way also

TrueOrFalse = IF(TABLE[Value] > 0 , "True" , "False")

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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