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! Get ahead of the game and start preparing now! Learn more
Hello,
Is there a way to use SAMEPERIODLASTYEAR with filter so that I can get specific values... For example see my query below - it sums up everything - I would like to get the SUM for all records based on the date but also based on another column value which will contain e.g Code = 101
eg.
NetRevenue LY = CALCULATE(SUM('Daily Revenue Accommodation'[NetRevenue]), SAMEPERIODLASTYEAR('Daily Revenue Accommodation'[RevenueDate]),ALL('Daily Revenue Accommodation'))
Solved! Go to Solution.
Just add an additional filter to CALCULATE Function.
Just add an additional filter to CALCULATE Function.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 34 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |