Forum Discussion
Compare and Visualize Value Between Two Dates
Hello,
I am looking to recreate the image below in Power BI Desktop.
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!
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 ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- PaulDBrown
Community Champion
Can you share some non-confidential sample data?
BTW, do you want to compare data which are the same period in different years?
- richbenmintz
Resident Rockstar
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.
- v-lionel-msft
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 ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- jytech
Helper I
I found that this helped too:
https://medium.com/chandakamit/power-bi-comparing-data-across-date-ranges-36be49b68613