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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.