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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
7 REPLIES 7
amitchandak
Super User
Super User
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.

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.

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

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.