Forum Discussion

nontmn's avatar
nontmn
Icon for Helper I rankHelper I
7 years ago
Solved

Dax filter column in column

Hello,

I would like to Sum sale by filter other like this

CALCULATE(SUM(ZGI[sale]),FILTER(ZGI,(ZGI[model])=ZGI[model]))
I would like model from that row will filter other out and sum only this model.
but (ZGI[model])=ZGI[model] not working in column 
PS. I have to use in column not measure because I will use this column next.
Thank you
  • Hi nontmn ,

    Based on your original formula, I modified it to calculte the values. 

     

    Column 4 = DIVIDE(CALCULATE(SUM('Table'[A]),FILTER('Table',EARLIER('Table'[model])='Table'[model])),'Table'[A])

     

    Is this what you want? If not, can you please post the expected result? Then we will understand your requirement clearly.

     

    Best Regards,

    Xue Ding

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

     

9 Replies