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
Anonymous
Not applicable

Variation in revenue in the same period last year

Hey guys

I have a problem using SAMEPERIODLASTYEAR to calculate the billing variation per month. The current month is not complete but the formula is considering the current month of last year as complete and the variation is wrong

The page has a relative date filter like this year

Albertor_0-1695310815410.png

 

When I put a filter between dates, for example 01/01/2023 to 09/19/2023, the billing variation is correct

Albertor_1-1695310967809.png

My dCalendar table looks like this -> dCalendar = CALENDAR(DATE(2011,01,01),TODAY())

Measures:

Billing = SUM(SALES[VALUE])

Billing LY = CALCULATE(SALES[VALUE], SAMEPERIODLASTYEAR(dCalendar.[Date]))

 

Has anyone experienced this?

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey guys

I broke my brain and found a solution lol
Created a new date table with the full period | calendario= date(2011,01,01),date(2100,12,31)) and connected the sales base after this, connected the old date table (dCalendar) with the new date table (calendario) and I'm using it as an automatic filter For dates 

Albertor_0-1695313133234.png

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hey guys

I broke my brain and found a solution lol
Created a new date table with the full period | calendario= date(2011,01,01),date(2100,12,31)) and connected the sales base after this, connected the old date table (dCalendar) with the new date table (calendario) and I'm using it as an automatic filter For dates 

Albertor_0-1695313133234.png

 

 

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.