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

How to get Last Quarter

Hi All,

 

I have used the below calculation to get the lastest churn lost for my data.

Now I need to get the last quarter churn lost but my calculations are not working.

Any help in this? I have Fiscal quarter in my dataset

 

 

Latest Churn Lost =
VAR LastDateGlobal =
    CALCULATETABLE (
        LASTNONBLANK ( AGGR_ACCOUNT_ARR_MONTHEND_SNAPSHOT[DATE_KEY], 0 ),
        ALLSELECTED ( )
    )
RETURN
    CALCULATE ( SUM ( AGGR_ACCOUNT_ARR_MONTHEND_SNAPSHOT[PLAN_CHURN_LOST] ), KEEPFILTERS ( LastDateGlobal ) ) + 0
 
 
Himanshu_1306_0-1667975991115.png

 

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @Himanshu_1306 ,

 

This is my test table:

vyadongfmsft_0-1668065829949.png

 

Please create a measure like below shown:

Last Quarter Churn Lost = CALCULATE([Latest Churn Lost],FILTER('Table','Table'[Fascial Quarter] = QUARTER(TODAY()) && YEAR('Table'[Fascial year month]) = YEAR(TODAY()) - 1))

 

You will get the last quarter churn lost:

vyadongfmsft_1-1668065928166.png

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @Himanshu_1306 ,

 

This is my test table:

vyadongfmsft_0-1668065829949.png

 

Please create a measure like below shown:

Last Quarter Churn Lost = CALCULATE([Latest Churn Lost],FILTER('Table','Table'[Fascial Quarter] = QUARTER(TODAY()) && YEAR('Table'[Fascial year month]) = YEAR(TODAY()) - 1))

 

You will get the last quarter churn lost:

vyadongfmsft_1-1668065928166.png

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.