Forum Discussion
Sam_2020
5 years agoHelper I
Need help on calculations
Hello
I need to have the Last Dec Sales Qty to be Dec Qty of previous year.
Ie. Eg. from Jan 2021 to Dec 2021, I have to have another column indicating Dec 2020 Sales Qty. Based on my below scenario, Dec 2020 the sales qty is 200. So that's why the Dec Qty is 200 from Jan 2021 to Jun 2021. Thanks.
| Period | Sales Qty | Last Dec Sales Qty |
| 2020-Nov | 100 | |
| 2020-Dec | 200 | |
| 2021-Jan | 377 | 200 |
| 2021-Feb | 544 | 200 |
| 2021-Mar | 298 | 200 |
| 2021-Apr | 100 | 200 |
| 2021-May | 300 | 200 |
| 2021-Jun | 288 | 200 |
2 Replies
- Jihwan_KimSuper User
- Ashish_MathurSuper User
Hi,
See this post of yours - (1) Re: Dax formula for the calculation of last Dec sa... - Microsoft Power BI Community