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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jagzz
Regular Visitor

PowerBI Comparison between dynamic daterange.

I want to compute the Sales for the between a date range.  For example If I select March 1st 2017 to March 15th 2017, it has to calculate  immediate 15 days before data and show the % change. or If a user select 10 days of data it has to compare the immediate 10 days previous data and show the % change.

 

Please help, as this is very urgent!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jagzz,

 

I think following blog will suitable for your requirement.

Previous Dynamic Period DAX Calculation

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Jagzz,

 

I think following blog will suitable for your requirement.

Previous Dynamic Period DAX Calculation

 

Regards,

Xiaoxin Sheng

Hi Guys, thanks for the support.

 

But I am still confused about the flow that is provided in the blog. Would it be possible to provide the steps according to my query.

 

I have "SalesTable" and If I select March 1st 2017 to March 15th 2017, it has to calculate immediate 15 days before data and show the % change. or If a user select 10 days of data it has to compare the immediate 10 days previous data and show the % change.

 

Please help!

 

Thanks & regards,

Jaagz

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.