Forum Discussion
Total Trade per Week
Hi good day can some help me on my measure, i have a table and i want to sum the total Trade per week. The column TRADE_Max Count/Week is one of my measure. The Total Trade in Week 22 is from 17+30+20 = 67, Week 23 is from 16+17+117=150 and so on.
| DATE | Week No: | Trade | TRADE_Max Count/Week | Total Trade |
| 5/26/2025 0:00 | 22 | Civil | 17 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Civil | 17 | 67 |
| 5/26/2025 0:00 | 22 | Civil | 17 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Elect | 20 | 67 |
| 5/27/2025 0:00 | 22 | Elect | 20 | 67 |
| 5/27/2025 0:00 | 22 | Elect | 20 | 67 |
| 5/27/2025 0:00 | 22 | Elect | 20 | 67 |
| 6/2/2025 0:00 | 23 | Mech | 16 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/2/2025 0:00 | 23 | Elect | 117 | 150 |
| 6/2/2025 0:00 | 23 | Mech | 16 | 150 |
| 6/2/2025 0:00 | 23 | Elect | 117 | 150 |
| 6/2/2025 0:00 | 23 | Elect | 117 | 150 |
| 6/2/2025 0:00 | 23 | Mech | 16 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/3/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/3/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
Thank you
DESIRED OUTPUT
| DATE | Week No: | Trade | TRADE_Max Count/Week | Total Trade |
| 5/26/2025 0:00 | 22 | Civil | 17 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Civil | 17 | 67 |
| 5/26/2025 0:00 | 22 | Civil | 17 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Mech | 30 | 67 |
| 5/26/2025 0:00 | 22 | Elect | 20 | 67 |
| 5/27/2025 0:00 | 22 | Elect | 20 | 67 |
| 5/27/2025 0:00 | 22 | Elect | 20 | 67 |
| 5/27/2025 0:00 | 22 | Elect | 20 | 67 |
| 6/2/2025 0:00 | 23 | Mech | 16 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/2/2025 0:00 | 23 | Elect | 117 | 150 |
| 6/2/2025 0:00 | 23 | Mech | 16 | 150 |
| 6/2/2025 0:00 | 23 | Elect | 117 | 150 |
| 6/2/2025 0:00 | 23 | Elect | 117 | 150 |
| 6/2/2025 0:00 | 23 | Mech | 16 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/2/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/3/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/3/2025 0:00 | 23 | Civil | 17 | 150 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Civil | 90 | 130 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Mech | 15 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
| 6/9/2025 0:00 | 24 | Scaff | 25 | 130 |
Hi AllanBerces,
Thank you Jihwan_Kim techies, for your insights.
I have reproduced your scenario using the sample data and obtained the output shown below. I have also attached the pbix file for your reference.
hope this helps
Thank you.
8 Replies
- v-saisrao-msftCommunity Support
Hi AllanBerces,
Thank you Jihwan_Kim techies, for your insights.
I have reproduced your scenario using the sample data and obtained the output shown below. I have also attached the pbix file for your reference.
hope this helps
Thank you.
- v-saisrao-msftCommunity Support
Hi AllanBerces,
Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further.
Thank you.
- Jihwan_KimSuper User
Hi,
Please check the below picture and the attached pbix file.
It is for creating a calculated column.
Total Trade CC = VAR _week = Data[Week No:] VAR _t = SUMMARIZE ( FILTER ( Data, Data[Week No:] = _week ), Data[Week No:], Data[TRADE_Max Count/Week] ) RETURN SUMX ( _t, Data[TRADE_Max Count/Week] )- AllanBercesPost Prodigy
Hi Jihwan_Kim thank you very much for the reply, but the column
TRADE_Max Count/Week is from measure.- Jihwan_KimSuper User
Hi,
Please share your sample pbix file, and then I can try to look into it.
Thank you.
- techiesSuper User
Hi AllanBerces please try this measure
Total trade=
CALCULATE (SUMX (VALUES ( Sheet8[Trade] ),[TRADE_Max Count/Week]),REMOVEFILTERS ( Sheet8[Trade] ))- AllanBercesPost Prodigy
Hi techies thank you for the reply but is show blank
- techiesSuper User
just to confirm, yu have a date table?