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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors