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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
AllanBerces
Post Prodigy
Post Prodigy

IF Condition

Hi good day, can anyone correct my IF calculated column 

Final = IF('Table01'[Subtable] = 0, 0, 'Table01'[Initial_)])
 
Current Result it turnout all 0
AllanBerces_0-1780115167206.png

DESIRED OUTPUT

AllanBerces_1-1780115198046.png
Initial_SubtableFinal
000
0 0
000
0 0
0 0
0 0
000
1 1
1 1
1 1
100
100
100
100
100
100
100
1 1
1 1
1 1
1 1
1 ACCEPTED SOLUTION
pallavi_r
Super User
Super User

Hi @AllanBerces ,

 

Please chech the below correct version and let me know if this works for you.

Corrected_Final = IF(ISBLANK('Data'[Subtable]), 'Data'[Initial_], 0)
Now with this version output is as provided in the snapshot below.
pallavi_r_0-1780120056832.png

 

If it sees a blank: It pulls Initial_ value.

If it sees a 0: It recognizes the number and returns 0.

 

If this post helps, please accept this as a solution. Appreciate your kudos.

Thanks,
Pallavi

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Write this calculated column formula

Column = if(Data[Subtable]==0,0,Data[Initial_])

Hope this helps.

Ashish_Mathur_0-1780183040737.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
pallavi_r
Super User
Super User

Hi @AllanBerces ,

 

Please chech the below correct version and let me know if this works for you.

Corrected_Final = IF(ISBLANK('Data'[Subtable]), 'Data'[Initial_], 0)
Now with this version output is as provided in the snapshot below.
pallavi_r_0-1780120056832.png

 

If it sees a blank: It pulls Initial_ value.

If it sees a 0: It recognizes the number and returns 0.

 

If this post helps, please accept this as a solution. Appreciate your kudos.

Thanks,
Pallavi

Hi @pallavi_r thank you very much working as i need.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.