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
AdamI
New Member

Getting values between dynamic date ranges

Hi There,

 

I wented to find out the best way to get values using dyanmic date ranges.

 

For example I want to look at period 1 from Jan 2016 - October 2016 and period two from Feb 2017 - June 2017 and then compare the two periods. I also want have the ability to change these dates as much as I want. 

 

Thanks for the help in advance!

 

Regards,

 

Adam. 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi Adam,

I would recommend the approach shown at the link below. It involves creating a secondary Date table with an inactive relationship to the main Date table. The two Date tables then provide the ability to filter the two required date ranges.

https://www.sqlbi.com/articles/filtering-and-comparing-different-time-periods-with-power-bi/

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi Adam,

I would recommend the approach shown at the link below. It involves creating a secondary Date table with an inactive relationship to the main Date table. The two Date tables then provide the ability to filter the two required date ranges.

https://www.sqlbi.com/articles/filtering-and-comparing-different-time-periods-with-power-bi/

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Thank you Owen this is very helpful!

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.