- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Filter a week of the year and sum the values of that week plus the values of all other weeks before.
Hello everyone,
I have a dashboard based on weeks of the year, and I need to count the products based on the week they are approved.
For example, on week 15 have 15 itens aproved, on week 16 have 3 products approved, on the week 22 I have approved other 2 itens, and so on. The column chart it's alright, it shows the information like this: week 1=0 Porducts, week 2=0 Porducts, (......), week 15=15 products, week 16=18 Products, week 17=18 Products, week 18=18 Products, week 19=18 Products, week 20=20 Products.
But my KPI card it's not right, because when I select for example the week 20, it filter only the values of this week and not make the sum of all other weeks before. How can I filter on the slicer the week selected plus all the weeks before?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous
you can do it like this:
Sum WTD =
CALCULATE(
SUM('Table'[Items]),
FILTER(
ALL('Table'),
'Table'[Week] <= SELECTEDVALUE('Table'[Week])
)
)
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous
you can do it like this:
Sum WTD =
CALCULATE(
SUM('Table'[Items]),
FILTER(
ALL('Table'),
'Table'[Week] <= SELECTEDVALUE('Table'[Week])
)
)
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Frank!
Thank's a lot. It work perfectly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
08-01-2024 12:48 AM | |||
Anonymous
| 09-12-2018 04:29 AM | ||
11-04-2020 08:51 AM | |||
03-18-2024 03:15 AM | |||
Anonymous
| 12-01-2023 05:21 AM |
User | Count |
---|---|
89 | |
76 | |
54 | |
45 | |
36 |
User | Count |
---|---|
95 | |
66 | |
54 | |
52 | |
45 |