The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a table with persons and amount paid pr month
I would like calculate the change of amount to previous amount for each record
Table:
Person | Month YY-MM | Amount | Calculation |
123 | 2021-05 | 50 | 0 |
123 | 2021-06 | 100 | 50 |
123 | 2021-07 | 100 | 0 |
123 | 2021-08 | 75 | -25 |
345 | 2021-05 | 100 | 0 |
345 | 2021-06 | 75 | -25 |
345 | 2021-07 | 75 | 0 |
345 | 2021-08 | 50 | -25 |
Looking forward for your inputs.
Thanks wdx223_Daniel and Jihwan_Kim,
both solutions works fine, I'm still in the development of my Dashboard, so I'm not able to measure performance on actual data, with several thousands of lines.
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
10 | |
10 | |
10 | |
9 |