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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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