Forum Discussion

AllanBerces's avatar
AllanBerces
Post Prodigy
11 months ago
Solved

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.

 

DATEWeek No:TradeTRADE_Max Count/WeekTotal Trade
5/26/2025 0:0022Civil1767
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Civil1767
5/26/2025 0:0022Civil1767
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Elect2067
5/27/2025 0:0022Elect2067
5/27/2025 0:0022Elect2067
5/27/2025 0:0022Elect2067
6/2/2025 0:0023Mech16150
6/2/2025 0:0023Civil17150
6/2/2025 0:0023Elect117150
6/2/2025 0:0023Mech16150
6/2/2025 0:0023Elect117150
6/2/2025 0:0023Elect117150
6/2/2025 0:0023Mech16150
6/2/2025 0:0023Civil17150
6/2/2025 0:0023Civil17150
6/2/2025 0:0023Civil17150
6/3/2025 0:0023Civil17150
6/3/2025 0:0023Civil17150
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Scaff25130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Scaff25130
6/9/2025 0:0024Scaff25130
6/9/2025 0:0024Scaff25130

Thank you

DESIRED OUTPUT

DATEWeek No:TradeTRADE_Max Count/WeekTotal Trade
5/26/2025 0:0022Civil1767
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Civil1767
5/26/2025 0:0022Civil1767
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Mech3067
5/26/2025 0:0022Elect2067
5/27/2025 0:0022Elect2067
5/27/2025 0:0022Elect2067
5/27/2025 0:0022Elect2067
6/2/2025 0:0023Mech16150
6/2/2025 0:0023Civil17150
6/2/2025 0:0023Elect117150
6/2/2025 0:0023Mech16150
6/2/2025 0:0023Elect117150
6/2/2025 0:0023Elect117150
6/2/2025 0:0023Mech16150
6/2/2025 0:0023Civil17150
6/2/2025 0:0023Civil17150
6/2/2025 0:0023Civil17150
6/3/2025 0:0023Civil17150
6/3/2025 0:0023Civil17150
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Scaff25130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Civil90130
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Mech15130
6/9/2025 0:0024Scaff25130
6/9/2025 0:0024Scaff25130
6/9/2025 0:0024Scaff25130

8 Replies

  • 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.

  • 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] )
    
      • Jihwan_Kim's avatar
        Jihwan_Kim
        Super User

        Hi,

        Please share your sample pbix file, and then I can try to look into it.

        Thank you.

  • Hi AllanBerces  please try this measure

    Total trade=

    CALCULATE (
        SUMX (
            VALUES ( Sheet8[Trade] ),
            [TRADE_Max Count/Week]
        ),
        REMOVEFILTERS ( Sheet8[Trade] )
    )