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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors