Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |