Forum Discussion
Filter data from other tables
- 5 years ago
Hi, carlochecchia
I am not sure how the below measure will influence your real case, but if your objective is to achieve the result that is shown in your picture, please try the below.
measurefix =
CALCULATE (
SUM ( Source[Weight] ),
CROSSFILTER ( Source[ID], Questions[ID], BOTH ),
CROSSFILTER ( Source[ID], Segment[ID], BOTH )
)Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
Hi, carlochecchia
I am not sure how the below measure will influence your real case, but if your objective is to achieve the result that is shown in your picture, please try the below.
measurefix =
CALCULATE (
SUM ( Source[Weight] ),
CROSSFILTER ( Source[ID], Questions[ID], BOTH ),
CROSSFILTER ( Source[ID], Segment[ID], BOTH )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
- carlochecchia5 years agoAdvocate I
Thank you once again!
I have one last question, if possible.
Still taking in account the same scenario, but adding a 'Date' Column to the Source dataframe:ID Weight Date
1001 1 01/01/211002 2 01/02/21
1003 3 01/03/21
Would it be possibe to calculate the accumulated weight by month, so it gives the following result:
--01/01/2021 01/02/2021 01/03/2021 total
blue 1 1 4 4
red - 2 2 2
total 1 3 6 6- Jihwan_Kim5 years agoSuper User
Hi, carlochecchia
Please try the below.
Cumulate Weight =
CALCULATE (
SUM ( Source[Weight] ),
CROSSFILTER ( Questions[ID], Source[ID], BOTH ),
CROSSFILTER ( Segment[ID], Source[ID], BOTH ),
FILTER ( ALLSELECTED ( Source ), Source[Date] <= MAX ( Source[Date] ) )
)