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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBI-Curious
Resolver I
Resolver I

Formatting needed to get rid of YoY % - inf when PY is zero

Hello PBI Community Good Day!

 

What can I add to my switch statement below to get rid of inf in the YoY % column when PY (GL) is zero?

 

PBICurious_0-1660938366706.png

PBICurious_1-1660938497517.png

Much appreciate your time.

 

Thank you

1 ACCEPTED SOLUTION

@PBI-Curious 

DIVIDE ( [QTD CY] - [QTD PY] ), [QTD PY]] )

View solution in original post

4 REPLIES 4
PBI-Curious
Resolver I
Resolver I

Tamerj1

That did the trick. 

Much appreciate your help!

Thank you

PBI-Curious
Resolver I
Resolver I

Hello Tamerj1

 

I'm gettting an error when using DIVIDE.

Much appreicate your help!

 

PBICurious_0-1660941674974.png

tamerj1
Super User
Super User

hi @PBI-Curious 

Replace the "/" sign with the DIVIDE function 

@PBI-Curious 

DIVIDE ( [QTD CY] - [QTD PY] ), [QTD PY]] )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors