Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, I have to calculate a new column CasesDay (red color) as the variation of the accumulated column CasesAcum.
I have more than 1 Name, so I have to calculate the increment for each row of each "Name". The registers are ordered by Name,Date
Thanks in advance
Name | Date | CasesAcum | CasesDay |
Afghanistan | 20/02/2020 0:00 | 0 | 0 |
Afghanistan | 21/02/2020 0:00 | 0 | 0 |
Afghanistan | 22/02/2020 0:00 | 0 | 0 |
Afghanistan | 23/02/2020 0:00 | 0 | 0 |
Afghanistan | 24/02/2020 0:00 | 1 | 1 |
Afghanistan | 25/02/2020 0:00 | 1 | 0 |
Afghanistan | 26/02/2020 0:00 | 1 | 0 |
Afghanistan | 27/02/2020 0:00 | 1 | 0 |
Afghanistan | 28/02/2020 0:00 | 4 | 3 |
Afghanistan | 29/02/2020 0:00 | 4 | 0 |
Afghanistan | 01/03/2020 0:00 | 5 | 1 |
Afghanistan | 02/03/2020 0:00 | 7 | 2 |
Afghanistan | 03/03/2020 0:00 | 7 | 0 |
Afghanistan | 04/03/2020 0:00 | 7 | 0 |
Afghanistan | 05/03/2020 0:00 | 11 | 4 |
Afghanistan | 06/03/2020 0:00 | 16 | 5 |
Afghanistan | 07/03/2020 0:00 | 21 | 5 |
Afghanistan | 08/03/2020 0:00 | 22 | 1 |
Afghanistan | 09/03/2020 0:00 | 22 | 0 |
Afghanistan | 10/03/2020 0:00 | 22 | 0 |
Afghanistan | 11/03/2020 0:00 | 24 | 2 |
Afghanistan | 12/03/2020 0:00 | 24 | 0 |
Afghanistan | 13/03/2020 0:00 | 40 | 16 |
Afghanistan | 14/03/2020 0:00 | 40 | 0 |
Solved! Go to Solution.
Hi @Marketeasing ,
Try this code for a new calculated column:
Hi @Marketeasing ,
Try this code for a new calculated column:
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |