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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors