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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
chrisyan_manalu
Helper II
Helper II

Count time using if function

Hi,

 

I have column Time (bins) below

chrisyan_manalu_2-1657703339014.png

 

And I'm create column to flagging when value of Time not blank then 0 else 1

The dax like this :

Index = IF([Time (bins)] <> BLANK(), 0,1)
 
When I'm filter Index equals to 1, value of time still there. The output should only "blank"

chrisyan_manalu_1-1657703271251.png

chrisyan_manalu_3-1657703505534.png

 

Anyone know how the dax should work ?

 

Please help

 

Thanks

 

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

Please try this, 00:00:00 is being considered as blank, so you need to use 'strictly equal to' (==) instead

 

Index = IF( NOT ( [Time (bins)] == BLANK() ), 0,1)

 

 

 

 

View solution in original post

2 REPLIES 2
AntonioM
Solution Sage
Solution Sage

Please try this, 00:00:00 is being considered as blank, so you need to use 'strictly equal to' (==) instead

 

Index = IF( NOT ( [Time (bins)] == BLANK() ), 0,1)

 

 

 

 

This is work !!

 

Thank you 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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