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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sebasjun
Helper I
Helper I

Time Intelligence - Comparing Day of Week of Previous Month

Hello

 

I need to compare my sales this month eit previous motnh, but in the comparaison i need the same day of the week. Because now Im comparing a sunday (the office is closed) with a wednesday 

 

p1.png

 

Now my Meausure BookingLines PM (Previous Month) is

 

Booking Lines PM = CALCULATE(sum(Data[Booking Lines]);DATEADD('Calendar'[Day];-1;MONTH))

 

Calendar is my Master Date Table

 

Have you got any idea?

 

Best Regards 

 

 

1 ACCEPTED SOLUTION

Hi,

 

You may refer to my solution this file.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Does this work?

=CALCULATE(sum(Data[Booking Lines]);EDATE(Calendar[Day];-1))

 

If it doe not work, then share the link fro where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi!

 

Thanks for you reply.! Not run 

 

I attach a simple file

 

File

 

Thanks

Hi,

 

You may refer to my solution this file.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.