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
sanc_152
Helper I
Helper I

Comparision of sales

Hi All,

 

I have the data with following snippet .I want to compare the current year forecast actuals with privious year actuals on forecastweeknumber scale on x axis .How can I create measure in dax.The result should be displayed based on forecastweek.

ForecastweekYear actuals
2022-012022200
2022-022022201
2022-032022202
2022-042022203
2022-052022204
2022-062022205
2022-072022206
2023-012023207
2023-022023303
2023-032023304
2023-042023305
2023-052023306

Result in picture view

sanc_152_0-1697520763797.png

 


@Ahmedx 

@amitchandak 

Can you please help.

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

Uzi2019
Super User
Super User

Hi @sanc_152 
I hope the below solution works for you.
Create measure like below:

Uzi2019_1-1697524254743.png

 

Uzi2019_0-1697524215765.png

I hope my post helps you. Please give kudos and accept it as a solution!
Thanks!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

2 REPLIES 2
Uzi2019
Super User
Super User

Hi @sanc_152 
I hope the below solution works for you.
Create measure like below:

Uzi2019_1-1697524254743.png

 

Uzi2019_0-1697524215765.png

I hope my post helps you. Please give kudos and accept it as a solution!
Thanks!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Ahmedx
Super User
Super User

I created an example, I really hope it will help you

https://1drv.ms/u/s!AiUZ0Ws7G26RiyEnIEg5m8VgopCr?e=kPDzlD

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.