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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Show Blank as Zero based on two other columns

Hi Experts

 

I am trying to not show blank in my table (column QTY refunded) but replace those blanks with 0. See image below.

See Product Brooke should read 13 and 0 in the QTY Refunded Column not blank.

 

Capture.PNG

 

 

 

My measure is 

QTY Refunded = COUNTA('its_metapack_received_returns'[returnoption])
When i add +0 to the end i get the following . Its now showing a new Product BINKY which has no units order but QTY refunded as Zero. 
Ideally i want to only show Products that have Units Ordered and QTY Refunded as Zero not blank. 
 
Capture.PNG
1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Anonymous,

 

Try this measure:

 

QTY Refunded =
VAR vCount =
    COUNTA ( 'its_metapack_received_returns'[returnoption] )
VAR vResult =
    IF ( ISBLANK ( vCount ), 0, vCount )
RETURN
    vResult




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

@Anonymous,

 

Try this measure:

 

QTY Refunded =
VAR vCount =
    COUNTA ( 'its_metapack_received_returns'[returnoption] )
VAR vResult =
    IF ( ISBLANK ( vCount ), 0, vCount )
RETURN
    vResult




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Many Thanks, 

 
 
 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors