Forum Discussion
DAX: How to register blank values as zero
Hi there,
I am currently working on a different formulas within my table on Power BI.
You can use the IF and ISBLANK functions in Power BI to conditionally display "$0.00" when the result is blank.
Result = VAR TotalAmount = CALCULATE( SUM(OrderTable[Amount]), OrderTable[OrderTypeId] = 22 || OrderTable[OrderTypeId] = 24, OrderTable[IsDeleted] = False, OrderStatus[OrderStatusId] <> 7 ) RETURN IF( ISBLANK(TotalAmount), "$0.00", TotalAmount )
3 Replies
- Jihwan_Kim
Super User
Hi,
Please check the link down below, and try to use it with your formula.
I hope this helps.
- Arpitb12
Helper I
You can use the IF and ISBLANK functions in Power BI to conditionally display "$0.00" when the result is blank.
Result = VAR TotalAmount = CALCULATE( SUM(OrderTable[Amount]), OrderTable[OrderTypeId] = 22 || OrderTable[OrderTypeId] = 24, OrderTable[IsDeleted] = False, OrderStatus[OrderStatusId] <> 7 ) RETURN IF( ISBLANK(TotalAmount), "$0.00", TotalAmount )- LABrowne
Helper II
Thank you a lot!