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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
vengadesh_p
Helper I
Helper I

YOY % changes for Star product

Hi All,

 

I have data like below table, i want to Create Star Product YOY changes %  

 

ProductSalesIs Star?MMM-YY
AC1000 1-Jan-2020
AC2200 1-Jan-2021
AC2700Y1-Jan-2022
AD100 1-Jan-2020
AD200 1-Jan-2021
AD300N1-Jan-2022
Washing Machine1500 1-Jan-2020
Washing Machine2000 1-Jan-2021
Washing Machine2500Y1-Jan-2022

 

 

Example : i did not filtred star product, so showing result was correct 

1.jpg

when i try to filter "Y" in is_star?  filter, it showing blank value  

2.jpg

expected value is (only AC, Washing Machine is star product)

3.jpg

i want to show YOY % only for is_star = "Y" but, this "Y" was present in 2022 record for this reson it shows blank value

 

Pls help me to resolve this logic

 

 

Sales = sum('Table'[Sales.])


Sales_PY = CALCULATE ( [Sales], DATEADD ( 'Dim_Calendar'[Date], -1, YEAR ) )


%YOY = DIVIDE([Sales]-[Sales_PY],[Sales_PY])

 

 

Thanks

Vengadesh p

 

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @vengadesh_p 

Please add a new calculated column:

IsStar = CALCULATE(MAX('Table'[Is Star?]),ALLEXCEPT('Table','Table'[Product]))

veasonfmsft_0-1667548878453.png

 

Then replace your original field 'Is Star?' with this field  [Is Star] in the slicer to filter the data.

Result:

veasonfmsft_1-1667548906336.png

Best Regards,
Community Support Team _ Eason

 

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @vengadesh_p 

Please add a new calculated column:

IsStar = CALCULATE(MAX('Table'[Is Star?]),ALLEXCEPT('Table','Table'[Product]))

veasonfmsft_0-1667548878453.png

 

Then replace your original field 'Is Star?' with this field  [Is Star] in the slicer to filter the data.

Result:

veasonfmsft_1-1667548906336.png

Best Regards,
Community Support Team _ Eason

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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