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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Vitor_sp_bo
Helper I
Helper I

same period

Guys, good morning!
Alright ?

I have a problem, I would like to compare this month's sales with last month's, but the comparison has some requirements.

1st I need to compare with the same period last month and not the msm date an example would be

get the sales period from 11/18 to 11/24

and compare with 10/21 to 10/27.

Any doubts I am available

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Vitor_sp_bo ,

Please refer to use Weeknum DAX.

https://docs.microsoft.com/en-us/dax/weeknum-function-dax

 

If it does not help,please provide some data and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Vitor_sp_bo ,

Please refer to use Weeknum DAX.

https://docs.microsoft.com/en-us/dax/weeknum-function-dax

 

If it does not help,please provide some data and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

Fowmy
Super User
Super User

@Vitor_sp_bo 

You need to duplicate your date table and use it as a slicer for the 2nd period to compare, build one measure to get the total sales based on the primary dates table and the other measure get from the 2nd table and do the comparison 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy  Hello friend, thanks for the answer, but what I need is just the percentage of growth dividing one period by the other, I just can't define a formula that does that

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.