Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Calculate using DAX

CWStoreIDCatIDMatIDSaleVolume
1Store121 $                18,674.64
1Store131 $                15,118.37
1Store111 $              107,588.30
1Store221 $                14,010.44
1Store231 $                  9,789.39
1Store211 $                28,643.33
1Store321 $                14,680.86
1Store331 $                12,438.25
1Store311 $                41,714.96
1Store421 $                  7,908.21
1Store431 $                17,931.38
1Store411 $                39,634.22
2Store121 $                19,838.09
2Store131 $                12,786.31
2Store111 $                44,042.58
2Store221 $                15,187.15
2Store231 $                11,641.98
2Store211 $                24,876.50
2Store321 $                  7,848.64
2Store331 $                  9,554.36
2Store311 $                20,857.48
2Store421 $                  7,537.00
2Store431 $                  6,441.51
2Store411 $                  8,110.98
3Store121 $                20,855.73

there are 52 weeks in column CW for four stores .

Weeding season weeks are-  1,2,3,49,50,51 and 52.

 

How can I calculate - A measure that calculates the total amount of sales during the Wedding Season.

  • HI Anonymous ,

     

    You can try this:

    Weeding Season Sales = 
        CALCULATE( SUM('Table'[SaleVolume]) ,'Table'[CW] IN {1, 2, 3, 49, 50, 51, 52})

2 Replies

  • Adescrit's avatar
    Adescrit
    Impactful Individual

    HI Anonymous ,

     

    You can try this:

    Weeding Season Sales = 
        CALCULATE( SUM('Table'[SaleVolume]) ,'Table'[CW] IN {1, 2, 3, 49, 50, 51, 52})
  • v-zhangti's avatar
    v-zhangti
    Community Support

    Hi, Anonymous 

     

    Has your problem been solved, if so, please consider Accept a correct reply as the solution. If not, please provide more details and the output you expect.

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.