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
Srinivas3350
Helper II
Helper II

can anyone help me in YOY growth by Monthly

AS i AM HAVING YoY growth table with fiscal calender where iam using this measure 

ASP Growth =
VAR CY = [REV]
VAR LY =
    CALCULATE(
        [REV],
        DATESBETWEEN('Table'[DATE],
        EDATE(MIN('Table'[DATE]),-12),
        EOMONTH(MAX('Table'[DATE]),-12)

Srinivas3350_0-1699462551002.png

 

        )
    )
        RETURN
     CY-LY

but it is not accurate for all months i have pointed some major differences it should calculate current  year month - PY month i dont what is the issue for some months the values are not accurate i am using fiscal calendar. can anyone help me this is an urgent for me
2 REPLIES 2
Dangar332
Super User
Super User

hi, @Srinivas3350 

try below

ASP Growth =
VAR CY = [REV]
VAR LY =
    CALCULATE(
        [REV],
        DATESBETWEEN('Table'[DATE],
        EDATE(MIN('Table'[DATE]),-13)+1,
        EOMONTH(MAX('Table'[DATE]),-12)

        )
    )
        RETURN
     CY-LY

Hi @Dangar332 when i used your dax the values are coming completely differnt

Srinivas904_0-1699480953314.png

 

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.