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
Hi,
We have below calculated measures in direct query model. Currently the variance is showing negative values for future dates. Can someone help how can we make the future dates variance values to 0. TIA.
Solved! Go to Solution.
@kumsha1 , Try measure
if(isblank([M1]), blank(), [M1] -[M2])
or
Sumx(values(Table[Date]), if(isblank([M1]), blank(), [M1] -[M2]) )
@kumsha1 You can create a measure like below:
Measure = If(Sum(Table[M1])=BLANK(),0,Sum(Table[M1]-Table[M2])
Hi @amitchandak , i changed the calc to show 0, so the line grapgh can show future dates when just variance is used.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 42 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |