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
RogerSteinberg
Post Patron
Post Patron

How to compare data between two custom dates?

Hi everyone,

 

I have been desperately looking for ways to compare data between two dates where the user can manually choose which dates.

It appears at the moment, powerBi doesn't support this feature. Google Analytics has a very compelling way of doing it where you can compare two date ranges at custom.

 

Say a promotion came out between Oct 24-30. I would like to compare it to another promotion available during Sept 4-10.

I would like the data to be portrayed within the same table to calculate its diff % ?

So the only thing i can think of is having obviously two slicers and cards representing the different metrics that are being evaluated. How can I then graph the results of two different date range into the same line graph?

 

Has anyone tried to the something similar and found a better solution?

 

Thank you!

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @RogerSteinberg

I see your last post, you follow this article

However, when you add date column from "Date" table or "Previous date table" in the table visual along with "sessions" and  "previous sales" measures,all dates show.

 

I can reproduce your problem as above.

Based on test,

since "previous sales " use the relationship between "date" from "previous Date" table,

but there is no relationship between the "previous Date" table and your data table,

when "previous sales "is in the table, adding date column from "Date" table or "Previous date table" will return all dates.

 

Could you show an expected output table visual or other charts so i can work directly on this?

 

Best Reagrds

Maggie

 

 

 

 

 

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @RogerSteinberg

I see your last post, you follow this article

However, when you add date column from "Date" table or "Previous date table" in the table visual along with "sessions" and  "previous sales" measures,all dates show.

 

I can reproduce your problem as above.

Based on test,

since "previous sales " use the relationship between "date" from "previous Date" table,

but there is no relationship between the "previous Date" table and your data table,

when "previous sales "is in the table, adding date column from "Date" table or "Previous date table" will return all dates.

 

Could you show an expected output table visual or other charts so i can work directly on this?

 

Best Reagrds

Maggie

 

 

 

 

 

Thank you @v-juanli-msft.

 

The expected output would be date on the x-axis and sessions on the y-axis in a line graph.

 

So if im comparing 20-21-22 oct 2018 to 10-11-12 aug 2018. I would like to see each day's session for the 6 days and therefore have two lines overlapping eachother.

Furthermore, I don't know if its possible, could it be possible to add the date on the first column, sessions on the second, and previous sales on the third column. On the first column all the dates are unionized as such :

10 aug,11 aug,12aug,10 oct,11 oct ,12 oct.
Unfortunately, I can't share any images, tables to my replies or posts. So its hard to show my expected output.

Thank you

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