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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jytech
Helper I
Helper I

Compare and Visualize Value Between Two Dates

Hello,

 

I am looking to recreate the image below in Power BI Desktop.

Untitled.png

There is definitely DAX time intelligence involved here. I believe I will also need to create a Comparison Date table as well.

Any help would be much appreciated.

 

Thank you!

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

Hi @jytech ,

 

Comparing different time periods – DAX Patterns

Please refer to the link, you can use two slicers to compare two periods.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
jytech
Helper I
Helper I
v-lionel-msft
Community Support
Community Support

Hi @jytech ,

 

Comparing different time periods – DAX Patterns

Please refer to the link, you can use two slicers to compare two periods.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

richbenmintz
Solution Sage
Solution Sage

Hi @jytech,

 

Assuming you have a date table connected to your fact table, you could try the following measures:

 

Users = SUM('fact'[Users])

Prior Year Users = CALCULATE([Users], SAMEPERIODLASTYEAR('calendar'[date]))

 

 Hope this helps or gets you going in the correct direction.

 



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


PaulDBrown
Community Champion
Community Champion

@jytech 

Can you share some non-confidential sample data?

BTW, do you want to compare data which are the same period in different years?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.