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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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 Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.