Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
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!!
Solved! Go to Solution.
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])
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.
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.
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])
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.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |