Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

New Card Visual - Error when reference label divide by 0

When one of my reference labels has a divide by 0 error it either blanked out the entire visual (even other measures that were unrelated) and/or blanked out the customisable visual options entirely for the visual. I tried an IFERROR in the visual and this didn't work, in the end I did an IF statement saying if 'Denominator' = 0 then 0 else DIVIDE 'etc' (This measure is a DIVIDE function for percentage change)

lwright_0-1704791001937.png 

Regular output (with IF statement)

lwright_1-1704791085069.pnglwright_2-1704791119036.png

Blank output (when IF removed)

 

Status: Needs Info
Comments
Anonymous
Not applicable

Hi @lwright ,

 

Unfortunately, I have made some attempts and have not been able to reproduce your problem. Can you provide me with your sample data? Usually, we use division to avoid a denominator of zero. If the value is wrong, you can redefine it by this function.

vtianyichmsft_0-1704870248689.png

 

Best regards,
Community Support Team_ Scott Chang