Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
HI, i have a formula who works like this:
Solved! Go to Solution.
Use the DIVIDE function, it accounts for a divide by zero error
Hi @marcos_osorio,
You can use an IF statement.
TH Total Unit Margin =
IF (
SUM ( 'BI Analysis'[Qtty] ) = 0,
BLANK (),
CALCULATE (
SUM ( 'BI Analysis'[Amount] ) / SUM ( 'BI Analysis'[Qtty] ),
YEAR ( 'BI Analysis'[DATE RECORD] ) > 2017,
'Type of Data'[TYPE] = "Result"
)
)
Best regards,
Yuliana Gu
Use the DIVIDE function, it accounts for a divide by zero error
Thank you very much!
I have a lot to learn of Power BI.
Thanks Again!
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 29 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 73 | |
| 63 | |
| 44 | |
| 23 | |
| 22 |