cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
ROG
Resolver III
Resolver III

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

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


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors