Forum Discussion
Dax filter column in column
- 7 years ago
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.
Try following
=
CALCULATE (
SUM ( ZGI[sale] ),
FILTER ( ZGI, ( ZGI[model] ) = EARLIER ( ZGI[model] ) )
)
- nontmn7 years ago
Helper I
Thank you It's working but when I use in another column for sum another thing it show
"a circular dependency was detected"
I have to make fomular like this for 3 column
Please help
Thanks
- Zubair_Muhammad7 years ago
Community Champion
Hi nontmn
What formula did you use?
If you could copy paste some sample data and expected results, it will help in finding an appropriate solution
As a sample see the below post
- nontmn7 years ago
Helper I
I use
column1 = CALCULATE (SUM ( ZGI[sale] ),FILTER ( ZGI, ( ZGI[model] ) = EARLIER ( ZGI[model] ) ))
and next I create column 2 like this
column2 = CALCULATE (SUM ( ZGI[GI] )
It show "a circular dependency was detected:ZGI[GI],ZGI[sale],ZGI[GI]"