The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I have a volume report used for months. Now we face a problem that we need to re-calculate the number of last year Dec and this year Jan.
We prepared another report with volume amount and date column. Like below.
Amount | Date |
100 | 1/1/2020 |
200 | 1/2/2020 |
200 | 1/1/2019 |
... |
I want to minus the amounts of the year/month of (date) from the current report. And then append these amount to previous month. Usually , it only happen for Jan every year. For example, If the current report have 1000 (Volumes) for Jan 2020 , then we need to minus 300 from 1000 and append 300 to Dec last year.
Do anyone have any idea how to do this?
Thanks!
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
The first report is the full report of volume including all years amounts. The second report which is only including the amount of Jan every year , is for adjustment to move the amounts from Jan to last year Dec. The second report data format is as below.
Amount | Date |
100 | Jan/1/2020 |
200 | Jan/2/2020 |
200 | Jan/1/2019 |
... |
For example , we have 300 in Jan 2020 and 200 in Jan 2019 . I want to move 300 to Dec 2019 and 200 to Dec 2018 of first report.
Thank you for your kindly help 🙂