Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Solved! Go to Solution.
Hi, @Huei;
Hi, @Huei;
Hi, @Huei ;
You could try it.
PY Sales Amt =
CALCULATE ( SUM ( [Sales Amt] ), SAMEPERIODLASTYEAR ( Dates[Date] ) )
Or
PY Sales Amt =
CALCULATE ( SUM ( [Sales Amt] ), DATEADD ( Dates[Date], -1, YEAR ) )
Best Regards,
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.
Hi,
Sorry for late reply. yes, it's works. Thanks
Hi amitchandak,
i want the PY Sales Amt to calculated as a column instead of measure. Can this be done?
@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
| User | Count |
|---|---|
| 56 | |
| 41 | |
| 38 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 103 | |
| 63 | |
| 36 | |
| 35 |