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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ROG
Responsive Resident
Responsive Resident

issue with measure

Hi guys,
 
Can you help me with isue below? The date column comes from a Calendar table. 
I need to fix this measure so my visual which has YOY% can work.
 
Net Churn - 30D% LY = CALCULATE(
    [Net Churn Monthly % - 30D]
    ,SAMEPERIODLASTYEAR('Calendar'[Date])
)

 

ROG_0-1665169211436.png

 

Thank you

1 ACCEPTED SOLUTION
ROG
Responsive Resident
Responsive Resident

Hey @Greg_Deckler  this is amazing!!!!!

 

Thanks a lot or sharing this.

 

I was able to fix my issue actualy doing the below.

Net Churn - 30D% LY = CALCULATE(
    [Net Churn Monthly % - 30D] ,
    DATEADD( 'Calendar'[Date] , -1 , YEAR ) )



View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@ROG You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000

Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
ROG
Responsive Resident
Responsive Resident

Hey @Greg_Deckler  this is amazing!!!!!

 

Thanks a lot or sharing this.

 

I was able to fix my issue actualy doing the below.

Net Churn - 30D% LY = CALCULATE(
    [Net Churn Monthly % - 30D] ,
    DATEADD( 'Calendar'[Date] , -1 , YEAR ) )



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.