- 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

Calculate Total weekly from daily figures
Hi,
I am trying to obtain the weekly QTY based on the daily QTY.
I would like to be able to extract the weekly QTY by store.
As you can see I have the daily QTY, store and the week number. So I would like to add an extra column or measure to know the total QTY per week and per store.
Any suggestion?
Thanks for your time
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @alexcatala ,
In that case, please use following formula:
Thanks,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @alexcatala ,
Try this,
Regards,
Dheeraj
Please mark as Solution if it works 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @dkaushik
It is a closer answer but the problem is the year, it is counting the total from all years, instead of per year.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@alexcatala ,In a table/matrix or any visual. Take un summarized week column and sum(table[Qty]), you will week wise data.
new measure = sum(table[Qty])
Or Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Weekly Qty as column = sumx(filter(Table, [store] =earlier([store]) && [week] <earlier([week])),[Qty])
But measure in visual is a better idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @amitchandak
After adding your suggestion this is what appeared.
It doesn't match the total number it should. It is inaccurate. For the 1st example if avg daily is 300 it should be around 2.100, but no 109.074.
Any suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @alexcatala ,
In that case, please use following formula:
Thanks,
Dheeraj

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 | |
---|---|---|---|
10-08-2024 06:50 AM | |||
07-17-2024 01:45 AM | |||
06-05-2024 12:06 AM | |||
07-12-2024 05:06 AM | |||
12-07-2022 05:14 PM |
User | Count |
---|---|
85 | |
78 | |
41 | |
40 | |
35 |