Forum Discussion
jtownsend21
Responsive Resident
7 years agoDynamic Column based on Slicer Selection
I think this is a really simple problem, unfortunately I just don't know how to solve it. I essentially have 2 tables. The first table is my User Table and it is laid out as follows: ...
- 7 years ago
Hi jtownsend21 ,
You should not create the relationship between the two tables and then create the measure with the formula below.
Measure = CALCULATE ( SUM ( 'Table2'[Amount] ), FILTER ( 'Table2', 'Table2'[Account Manager] = SELECTEDVALUE ( Table1[Employee] ) || 'Table2'[Consultant] = SELECTEDVALUE ( Table1[Employee] ) ) )Here is the ouptut.
Best Regards,
Cherry
v-piga-msft
Resident Rockstar
7 years agoHi jtownsend21 ,
You should not create the relationship between the two tables and then create the measure with the formula below.
Measure =
CALCULATE (
SUM ( 'Table2'[Amount] ),
FILTER (
'Table2',
'Table2'[Account Manager] = SELECTEDVALUE ( Table1[Employee] )
|| 'Table2'[Consultant] = SELECTEDVALUE ( Table1[Employee] )
)
)
Here is the ouptut.
Best Regards,
Cherry