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
DGTL
Helper I
Helper I

DAX Time Sameperiod last year

Hello,

 

I can not calculate the sum of a column compared to the month of last year.

I used these two formulas. Each time it calculates me for the same month

 

Volume_M-1 = CALCULATE(
SUM('Bons de livraison'[Volume]);
SAMEPERIODLASTYEAR('Table Dates'[Date]))
 
Volume_M-1 = CALCULATE(
SUM('Bons de livraison'[Volume]);
PARALLELPERIOD('Table Dates'[Date];-1;YEAR))
 
I have a date table:
Table Dates =
ADDCOLUMNS(CALENDAR(DATE(2014;1;1);TODAY());
        "Année";YEAR([Date]);
        "Mois";MONTH([Date]);
        "Nom du mois";FORMAT([Date];"MMM YY");
        "Nom du jour";FORMAT([Date];"DDD d MMM YY"))
 
 Help please 🙂
2 REPLIES 2
DGTL
Helper I
Helper I

PBII.jpg

helpHeart

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.

Top Solution Authors