Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
hello,
I would like to ask for help.
I calculated accomulated week (Week Sales - see below). This measure I use for grapth.
For total country it works - I see accomulated data (picture 1). But when I using filters by regions it dosent't work - becuase data for 2a or 3 (please see attached file) dosen't exist (picture 2).
Week Sales =
hello,
please see my second post - the same issue.
how to calculate accumalated data when data for on... - Microsoft Fabric Community
hi,
please see the below my new post.
RRe: how to calculate accumalated data when data fo... - Microsoft Fabric Community
please help me
regards, Ewa
hi,
can you help me, please?
Hi @Ewa_28 ,
Can you provide some test data about the data model so that I can answer your question as soon as possible?
Best Regards,
Adamk Kong
hi,
I coped data. Please see below.
Year | Q | Week | Region | Argument | suma |
2024 | 4 | 46 | CEN | 1 | 26 |
2024 | 4 | 50 | PLN | 2A | 160 |
2024 | 4 | 49 | CEN | 1 | 4 |
2024 | 4 | 50 | PLD | 1 | 152 |
2024 | 4 | 46 | PLD | 1 | 44 |
2024 | 4 | 41 | PLD | 1 | 18 |
2024 | 4 | 44 | PLD | 1 | 28 |
2024 | 4 | 47 | PLD | 3 | 62 |
2024 | 4 | 50 | PLD | 2A | 79 |
2024 | 4 | 47 | PLD | 2A | 20 |
2024 | 4 | 48 | PLN | 2B | 6 |
2024 | 4 | 44 | PLN | 2A | 10 |
2024 | 4 | 47 | PLN | 2A | 9 |
2024 | 4 | 43 | WSC | 2A | 45 |
2024 | 4 | 50 | CEN | 1 | 7 |
2024 | 4 | 43 | PLD | 2A | 46 |
2024 | 4 | 50 | PLD | 2B | 8 |
2024 | 4 | 43 | WSC | 1 | 48 |
2024 | 4 | 49 | WSC | 1 | 20 |
2024 | 4 | 50 | PLN | 2B | 29 |
2024 | 4 | 43 | PLD | 1 | 24 |
2024 | 4 | 50 | PLD | 3 | 13 |
2024 | 4 | 49 | CEN | 2B | 20 |
2024 | 4 | 43 | CEN | 1 | 29 |
2024 | 4 | 40 | PLD | 2A | 40 |
2024 | 4 | 46 | WSC | 1 | 23 |
2024 | 4 | 43 | PLN | 1 | 30 |
2024 | 4 | 43 | PLN | 2A | 30 |
2024 | 4 | 45 | WSC | 1 | 17 |
2024 | 4 | 50 | PLN | 1 | 36 |
2024 | 4 | 49 | PLN | 1 | 52 |
2024 | 4 | 40 | WSC | 2A | 22 |
2024 | 4 | 48 | PLN | 1 | 18 |
2024 | 4 | 45 | PLN | 1 | 32 |
2024 | 4 | 41 | WSC | 2A | 23 |
2024 | 4 | 50 | WSC | 2A | 42 |
2024 | 4 | 46 | PLD | 2A | 66 |
2024 | 4 | 50 | WSC | 2B | 29 |
2024 | 4 | 46 | PLN | 1 | 59 |
2024 | 4 | 45 | CEN | 1 | 27 |
2024 | 4 | 46 | PLN | 2A | 71 |
2024 | 4 | 45 | PLN | 2B | 4 |
2024 | 4 | 40 | PLD | 1 | 5 |
2024 | 4 | 50 | WSC | 1 | 10 |
2024 | 4 | 41 | PLD | 2a | 26 |
2024 | 4 | 41 | PLD | 2B | 35 |
2024 | 4 | 49 | WSC | 3 | 3 |
2024 | 4 | 41 | WSC | 1 | 2 |
2024 | 4 | 49 | PLD | 2A | 27 |
2024 | 4 | 42 | PLD | 1 | 3 |
2024 | 4 | 42 | CEN | 1 | 17 |
2024 | 4 | 43 | CEN | 3 | 6 |
2024 | 4 | 40 | CEN | 1 | 20 |
2024 | 4 | 40 | CEN | 3 | 10 |
2024 | 4 | 41 | PLD | 3 | 25 |
2024 | 4 | 42 | WSC | 3 | 42 |
and I also coped custom calendar, I use in my report.
Year | Week | Q | Date |
2024 | 40 | 4 | 30.09.2024 |
2024 | 40 | 4 | 01.10.2024 |
2024 | 40 | 4 | 02.10.2024 |
2024 | 40 | 4 | 03.10.2024 |
2024 | 40 | 4 | 04.10.2024 |
2024 | 40 | 4 | 05.10.2024 |
2024 | 40 | 4 | 06.10.2024 |
2024 | 41 | 4 | 07.10.2024 |
2024 | 41 | 4 | 08.10.2024 |
2024 | 41 | 4 | 09.10.2024 |
2024 | 41 | 4 | 10.10.2024 |
2024 | 41 | 4 | 11.10.2024 |
2024 | 41 | 4 | 12.10.2024 |
2024 | 41 | 4 | 13.10.2024 |
2024 | 42 | 4 | 14.10.2024 |
2024 | 42 | 4 | 15.10.2024 |
2024 | 42 | 4 | 16.10.2024 |
2024 | 42 | 4 | 17.10.2024 |
2024 | 42 | 4 | 18.10.2024 |
2024 | 42 | 4 | 19.10.2024 |
2024 | 42 | 4 | 20.10.2024 |
2024 | 43 | 4 | 21.10.2024 |
2024 | 43 | 4 | 22.10.2024 |
2024 | 43 | 4 | 23.10.2024 |
2024 | 43 | 4 | 24.10.2024 |
2024 | 43 | 4 | 25.10.2024 |
2024 | 43 | 4 | 26.10.2024 |
2024 | 43 | 4 | 27.10.2024 |
2024 | 44 | 4 | 28.10.2024 |
2024 | 44 | 4 | 29.10.2024 |
2024 | 44 | 4 | 30.10.2024 |
2024 | 44 | 4 | 31.10.2024 |
2024 | 44 | 4 | 01.11.2024 |
2024 | 44 | 4 | 02.11.2024 |
2024 | 44 | 4 | 03.11.2024 |
2024 | 45 | 4 | 04.11.2024 |
2024 | 45 | 4 | 05.11.2024 |
2024 | 45 | 4 | 06.11.2024 |
2024 | 45 | 4 | 07.11.2024 |
2024 | 45 | 4 | 08.11.2024 |
2024 | 45 | 4 | 09.11.2024 |
2024 | 45 | 4 | 10.11.2024 |
2024 | 46 | 4 | 11.11.2024 |
2024 | 46 | 4 | 12.11.2024 |
2024 | 46 | 4 | 13.11.2024 |
2024 | 46 | 4 | 14.11.2024 |
2024 | 46 | 4 | 15.11.2024 |
2024 | 46 | 4 | 16.11.2024 |
2024 | 46 | 4 | 17.11.2024 |
2024 | 47 | 4 | 18.11.2024 |
2024 | 47 | 4 | 19.11.2024 |
2024 | 47 | 4 | 20.11.2024 |
2024 | 47 | 4 | 21.11.2024 |
2024 | 47 | 4 | 22.11.2024 |
2024 | 47 | 4 | 23.11.2024 |
2024 | 47 | 4 | 24.11.2024 |
2024 | 48 | 4 | 25.11.2024 |
2024 | 48 | 4 | 26.11.2024 |
2024 | 48 | 4 | 27.11.2024 |
2024 | 48 | 4 | 28.11.2024 |
2024 | 48 | 4 | 29.11.2024 |
2024 | 48 | 4 | 30.11.2024 |
2024 | 48 | 4 | 01.12.2024 |
2024 | 49 | 4 | 02.12.2024 |
2024 | 49 | 4 | 03.12.2024 |
2024 | 49 | 4 | 04.12.2024 |
2024 | 49 | 4 | 05.12.2024 |
2024 | 49 | 4 | 06.12.2024 |
2024 | 49 | 4 | 07.12.2024 |
2024 | 49 | 4 | 08.12.2024 |
2024 | 50 | 4 | 09.12.2024 |
2024 | 50 | 4 | 10.12.2024 |
2024 | 50 | 4 | 11.12.2024 |
2024 | 50 | 4 | 12.12.2024 |
2024 | 50 | 4 | 13.12.2024 |
2024 | 50 | 4 | 14.12.2024 |
2024 | 50 | 4 | 15.12.2024 |
hi,
please let me know, how I can attache any file?
Hi @Ewa_28 - Slight adjustment of your measure to handle , when filtering by regions where some weeks have no data, causing gaps in your accumulated week sales calculation.
Week Sales =
VAR _select_week = MAX('calendar'[week])
VAR _select_kwartal = MAX('calendar'[q])
VAR _select_year = MAX('calendar'[year])
VAR _cur_week = MAX('Sales'[week])
VAR _cur_kwartal = MAX('Sales'[q])
VAR _cur_year = MAX('Sales'[year])
VAR AllWeeksInFilter =
CALCULATETABLE(
VALUES('calendar'[week]),
ALLSELECTED('Sales')
)
VAR Result =
IF(
_cur_year = _select_year
&& _cur_kwartal = _select_kwartal
&& _cur_week <= _select_week,
CALCULATE(
SUM('Sales'[Sales]),
'Sales'[week] IN AllWeeksInFilter,
'Sales'[q] = _cur_kwartal,
'Sales'[year] = _cur_year
)
)
RETURN
Result
Hope this helps.
Proud to be a Super User! | |
hi,
I implemented your solution but unfortunatelly it dosen't work 😞
this picture shows data for all regions, it isn't accumulated data
and
filter by one of regions: this data is not accumulated and I lost week where is no data
please help me!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
79 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |