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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JD09
Advocate I
Advocate I

Getting Value = 0 for the Row That does not exists

Hello,
I have the following sample data:

Load, Month Year, Value
A, Jan-2019, 100
B, Jan-2019,200
C, Jan-2019,300
A, Feb-2019, 100
C, Feb-2019,300
A, Mar-2019, 100
B,Mar-2019,200
C, Mar-2019,300

JD09_0-1707214295011.png

Expected Output:

Wanted to have Value = 0 (Instead of Blank) For Load = B & Month-Year = Feb-2019, Sample data does have this Row,
How to achieve this scenario.
Thank You!!

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@JD09 , Try a measure like

sum(Table[Value]) +0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

v-weiyan1-msft
Community Support
Community Support

Hi @JD09 ,

 

You can consider the method mentioned by @amitchandak .
You can also consider the following method to solve the problem.
1. Please try code as below to Create a Calculated table.

Table 2 = VALUES('Table'[Load])

vweiyan1msft_0-1707297884125.png

2. Use the following code to create Measure.

Value_Measure =
VAR Val = SELECTEDVALUE ( 'Table'[Value] ) 
RETURN 
IF ( ISBLANK ( Val ), 0, Val )

Result is as below.

vweiyan1msft_1-1707297943662.png

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-weiyan1-msft
Community Support
Community Support

Hi @JD09 ,

 

You can consider the method mentioned by @amitchandak .
You can also consider the following method to solve the problem.
1. Please try code as below to Create a Calculated table.

Table 2 = VALUES('Table'[Load])

vweiyan1msft_0-1707297884125.png

2. Use the following code to create Measure.

Value_Measure =
VAR Val = SELECTEDVALUE ( 'Table'[Value] ) 
RETURN 
IF ( ISBLANK ( Val ), 0, Val )

Result is as below.

vweiyan1msft_1-1707297943662.png

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank You @v-weiyan1-msft  !!

amitchandak
Super User
Super User

@JD09 , Try a measure like

sum(Table[Value]) +0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.