cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ADC Frequent Visitor
Frequent Visitor

How to show null values when I get NaN in matrix

Hello everyone

 

Using the Measure "Mora", I created the following Matrix.

 

Mora = sum(Pre_Rentabilidad[Saldo 6])/sum(Pre_Rentabilidad[Imp Cta 6])

 

Mora.png

 

For those cells where I get "NaN", I'd like to get nothing (null).

 

I tried a variant for the Measure:

Mora = IFERROR(sum(Pre_Rentabilidad[Saldo 6])/sum(Pre_Rentabilidad[Imp Cta 6]);"")

to avoid getting NaN. However, doing this I can't keep the percentage format for the values.

 

Mora2.jpg

 

I also tried:

Mora = IFERROR(sum(Pre_Rentabilidad[Saldo 6])/sum(Pre_Rentabilidad[Imp Cta 6]);0)

But I get 0%, when I should actually get null cells.

 

 

Could you help me keep percentage format for the values and nothing in those cells where the division is NaN?

 

Thanks in advance. 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV
Super User IV

Re: How to show null values when I get NaN in matrix

Mora = IFERROR(sum(Pre_Rentabilidad[Saldo 6])/sum(Pre_Rentabilidad[Imp Cta 6]);BLANK())

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Super User IV
Super User IV

Re: How to show null values when I get NaN in matrix

Mora = IFERROR(sum(Pre_Rentabilidad[Saldo 6])/sum(Pre_Rentabilidad[Imp Cta 6]);BLANK())

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

ADC Frequent Visitor
Frequent Visitor

Re: How to show null values when I get NaN in matrix

Thanks a lot! 

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors