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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.