Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Himanshu_1306
Resolver I
Resolver I

YOY%

Hi All,

 

I'm stuck on an issue where my YOY% is not coming correct.

 

Calculation used: 

 

YOY % Churn Lost = DIVIDE(SUM(AGGR_LAND_EXPAND_VIEW[PLAN_CHURN_LOST]),CALCULATE(SUM(AGGR_LAND_EXPAND_VIEW[PLAN_CHURN_LOST]),SAMEPERIODLASTYEAR(AGGR_LAND_EXPAND_VIEW[DATE].[Date])))-1

 

Himanshu_1306_0-1669375401981.png

 

Current Month End Number i.e Oct'2022 = ($5.54M)

Oct'2021 Number = ($3.15M)

 

Himanshu_1306_1-1669375544935.png

 

Himanshu_1306_2-1669375661414.png

 

So ideally the % change should be somewhere around 75% but not sure why my calculation showing it as 115%.

 

Any help here?

 

Regards,

Himanshu

 

2 REPLIES 2
FreemanZ
Super User
Super User

As Time Intelligence Function, SAMEPERIODLASTYEAR is supposed to take argument from Date columns from Date table. Supposing you already have a Date table, try to change the measure to:
 
YOY % Churn Lost =
DIVIDE(
    SUM( AGGR_LAND_EXPAND_VIEW[PLAN_CHURN_LOST]),
    CALCULATE(
        SUM(AGGR_LAND_EXPAND_VIEW[PLAN_CHURN_LOST]),
        SAMEPERIODLASTYEAR('Date'[Date])
    )
)-1

No luck, its giving the same value i.e 115%.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.