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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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