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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors