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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
nikhilmanohar
Helper I
Helper I

If Not blank - Formula for two columns

Hello,

 

How to compare two columns and return "0" if both columns are blank and return "1" otherwise. I'm an absolute beginner and any help would be greatly appreciated.

 

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

HI @nikhilmanohar

 

You can use this column

 

Column =
IF ( AND ( ISBLANK ( Table1[Col1] ), ISBLANK ( Table1[Col2] ) ), 0, 1 )

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

HI @nikhilmanohar

 

You can use this column

 

Column =
IF ( AND ( ISBLANK ( Table1[Col1] ), ISBLANK ( Table1[Col2] ) ), 0, 1 )

Regards
Zubair

Please try my custom visuals

@Zubair_Muhammad Thank you very much 🙂

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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