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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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