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

Reply
Miguelcrz
Helper I
Helper I

Replace cells measure

Hi!

 

I need to replace the cells that have "infinity" with another word like "No sales". The table that has infinity is a variation %

 

Miguelcrz_0-1595522406372.png

 

Thanks!!

1 ACCEPTED SOLUTION

HI @Miguelcrz ,

 

Modify your DAX expression to as follows:

Calc = DIVIDE(sales A, Sales B, 0) - 1

 

Also Power BI doesn't allow multiple datatypes in a single column. You will have to either have them as ZEROES which the DIVIDE function handles in Power BI.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Miguelcrz , Power bi does not allow variable data type. In means, you need to make it text ane also take care of data format.

 

If it coming power bi then use divide function in place of /

If it coming from source, what is the data type of column

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Pragati11
Super User
Super User

Hi @Miguelcrz ,

 

Is this variation % calculated any dax expression or it is coming directly from source data?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi! @Pragati11  is a dax expression: (sales A/Sales B)-1

HI @Miguelcrz ,

 

Modify your DAX expression to as follows:

Calc = DIVIDE(sales A, Sales B, 0) - 1

 

Also Power BI doesn't allow multiple datatypes in a single column. You will have to either have them as ZEROES which the DIVIDE function handles in Power BI.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.