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

FY YTD DAX Help

Hello experts,

Based on the financial year selection, I want to calculate complete last financial year sales.

Please help

 

SALE YTD CY =
TOTALYTD(SUM(Sales[Amount]),'Calendar'[Date], ALL('Calendar'), "6/30")
 
SALE YTD PY =
CALCULATE (
    TOTALYTD (
        SUM ( Sales[Amount] ),
        'Calendar'[Date],
        ALL ( 'Calendar' ),
        "6/30"
    ),
    SAMEPERIODLASTYEAR ( 'Calendar'[Date] )
)
 

Please check my pbix file

https://drive.google.com/file/d/1BGdZIExVWml76P2cQ8GJf8L_AFBscISr/view?usp=sharing

1 REPLY 1
ribisht17
Super User
Super User

@Anonymous 

 

Please check  https://community.powerbi.com/t5/Desktop/FY-sales-dax-help/m-p/2545163 

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

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.