The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I am using this measure to calculate last year sales:
Year 2023 | Months | Last Year Sales |
Total : 1000 | ||
January | 200 | |
February | 50 | |
March | 150 | |
Hi,
Try using SAMEPERIODLASTYEAR() instead of PREVIOUSYEAR().
I think that will solve your problem.
@AliNoorani it doesn't give total sales of last year, only shows last year's same month/period value. I need to show first total of last year then breakdown in the months.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
101 | |
82 | |
62 | |
56 |
User | Count |
---|---|
254 | |
119 | |
115 | |
100 | |
76 |