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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
AllanBerces
Post Prodigy
Post Prodigy

Visual calculation

Hi good day can anyone help me correct my visual calculation.

if Vessel Capacity is equal to 0 and blank then the result is Vessel Capacity else the FC POB Plan

Calculation = IF([Vessel Capacity] = "0" || BLANK(), [Vessel Capacity], [FC POB Plan])
 
Thnak you
2 ACCEPTED SOLUTIONS
ChainsawMan
Helper I
Helper I

Hi,
Ensure you are referencing the columns/measures exactly as they appear in the visual matrix:

Calculation = IF([Vessel Capacity] = 0 || [Vessel Capacity] = BLANK(), [Vessel Capacity], [FC POB Plan])

You could check whether the [Vessel Capacity] is text or a number.

 

View solution in original post

FreemanZ
Community Champion
Community Champion

hi @AllanBerces ,

 

try like:
Calculation = IF([Vessel Capacity] = 0 || ISBLANK([Vessel Capacity] ), [Vessel Capacity], [FC POB Plan])

View solution in original post

5 REPLIES 5
krishnakanth240
Power Participant
Power Participant

Hi @AllanBerces 

 

Can you check try this and confirm

 

Calculation =
IF(ISBLANK([Vessel Capacity]) || [Vessel Capacity] = 0,[Vessel Capacity],[FC POB Plan])

FreemanZ
Community Champion
Community Champion

hi @AllanBerces ,

 

try like:
Calculation = IF([Vessel Capacity] = 0 || ISBLANK([Vessel Capacity] ), [Vessel Capacity], [FC POB Plan])

Hi @krishnakanth240 @FreemanZ @ChainsawMan thnak you very much working perfetly

You're welcome @AllanBerces ! Could you please accept it as a solution if the calculation is working. Thank you

ChainsawMan
Helper I
Helper I

Hi,
Ensure you are referencing the columns/measures exactly as they appear in the visual matrix:

Calculation = IF([Vessel Capacity] = 0 || [Vessel Capacity] = BLANK(), [Vessel Capacity], [FC POB Plan])

You could check whether the [Vessel Capacity] is text or a number.

 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.