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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors