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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to compare data between 2 custom dates Filter ?

Hello Guys,

 

Hope eveyone doing well.

 

I have one client requirement where he wants to compare the data between 2 custom dates ranges like First date range vs Second Date ranges over the period time. He wants to show this data based date x axis.

 

So please help !

 

Thank you in adavance.

 

Regards,

Dev

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Refer this article for the same

https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous , Refer this article for the same

https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak 

Thank you for your quick response.

 

I have gone through your article where I can see that you comparing data for example Jan 19  to Jan 20 data.

But my client is looking for any date range for example Feb 2019 data will compare with Jan 2020 data.

Please see the below screen shot grapgh and date selection. Is this possible ?

 
 
 

Graph.PNGDate Range.PNG

@Anonymous , I think two different ranges are getting compared in that article.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Yes, Client looking for such types date range comparision. Is this possible ?

@Anonymous , I am confused now. What you are showing in the screenshot is what given the blog I shared. You can have two  date range, two-month slicers or anything else.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak 

Thank you for your patients and reply.
Yes, But look at that date ranges and Tooltip where 2 weeks in the same month we are trying to compare using Line graph.

I want to develope the same graph in the Power BI.

 

Thanks,

Devanand

Anonymous
Not applicable

Hi @Anonymous,

First, you can create one calendar table. Then create a measure with the below formula:

Previous week = CALCULATE(SUM('Sales'[Sales]),DATEADD('Calendar'[Date],-7,DAY))

compare 2 weeks.JPG

Best Regards

Rena

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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