Forum Discussion
DAX Query
- 4 years ago
Hi TRPBI ,
According to your description, here’s my solution.
1.Create a table, there’s no relationship between the two tables.
2.Create a measure.
Result =
SWITCH (
SELECTEDVALUE ( 'Table (2)'[Type] ),
"A",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', [Tag] IN { "AB", "A", "ABC" } )
),
"B",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', [Tag] IN { "AB", "ABC", "BC", "B" } )
),
"C",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', [Tag] IN { "ABC", "BC" } )
)
)
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TRPBI Well of course not, all of your C's are in your A's and B's. So you have a disconnected table for A, B and C selection or ? I'm not exactly clear on this one.