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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
admin11
Memorable Member
Memorable Member

How to modify the YTD GP% expression , so that it will return GP < 20% ?

Hi All

 

I have below expression working fine :-

GP% YTD = DIVIDE(([Sales YTD] - [COST YTD]),[Sales YTD])
 
May i know how to modify the expression , So that it will return only those 3 row where GP less then 20%

admin11_0-1615462597111.png

 

Paul

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@admin11 , Try a measure like

 

GP% YTD =
var _1 = DIVIDE(([Sales YTD] - [COST YTD]),[Sales YTD])
return
if(_1 <.2 , _1, blank())

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@admin11 , Try a measure like

 

GP% YTD =
var _1 = DIVIDE(([Sales YTD] - [COST YTD]),[Sales YTD])
return
if(_1 <.2 , _1, blank())

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Thank you very much , it work fine.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors