Reply
ROG
Responsive Resident
Responsive Resident
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

@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

Syndicated - Outbound

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 ) )



avatar user

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)