Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

dax

i want to show last year sales, this yar sales from total sales but according to the fiscal year that is already created in the database (eg 22-23, 23-24) ...... i have tried different measures but i...
  • Ahmedx's avatar
    Ahmedx
    2 years ago

    explain how these numbers got it

    Categorylast year salesthis year

    Aircare10945577,4911584772,68
  • Ahmedx's avatar
    2 years ago

    you need to write the following

    AMO = SUM('share data 1'[Sum of Retailing]) 
    lastYear = CALCULATE([AMO],'share data 1'[Fiscal] ="22-23")
    NowYear = CALCULATE([AMO],'share data 1'[Fiscal] ="23-24")
    % growth = DIVIDE([NowYear],[lastYear])-1