Forum Discussion
Convert Blank to Zero
- 1 year ago
Hi BrettM , i understand you want to show zero instead of blanks. The ways I would so it are:
1. Using IF
BeforeToday =
VAR Result = CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY())
RETURN IF(ISBLANK(Result), 0, Result)
2. Using COALESCEBeforeToday = COALESCE(
CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY()),
0
)
βHope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
π‘Found it helpful? Show some love with kudos π as your support keeps our community thriving!
πLetβs keep building smarter, data-driven solutions together! π [Explore more]
Hi BrettM , i understand you want to show zero instead of blanks. The ways I would so it are:
1. Using IF
BeforeToday =
VAR Result = CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY())
RETURN IF(ISBLANK(Result), 0, Result)
2. Using COALESCE
BeforeToday = COALESCE(
CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY()),
0
)
βHope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
π‘Found it helpful? Show some love with kudos π as your support keeps our community thriving!
πLetβs keep building smarter, data-driven solutions together! π [Explore more]