Solved! Go to Solution.
Hi, @Huei ;
You could try it.
PY Sales Amt = CALCULATE ( SUM ( [Sales Amt] ), SAMEPERIODLASTYEAR ( Dates[Date] ) )
PY Sales Amt = CALCULATE ( SUM ( [Sales Amt] ), DATEADD ( Dates[Date], -1, YEAR ) )
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Huei , Do not use .date. Mark date table as date table. after that you will not get .date
PY Sales Amt = CALCULATE(Sellout[Sales Amt],SAMEPERIODLASTYEAR(Dates[Date]))
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.