Forum Discussion
michaelsh
Kudo Kingpin
5 years agoDynamically compare snapshots: before vs. after
I have a table of snapshots. For each employee I have an attribute (department, manager, salary bin, position, etc.) and for each attribute - I have it's value. I want my users to pick 3 things fro...
Anonymous
5 years agoNot applicable
Hi michaelsh ,
1.Create three calculated tables.
After =
SELECTCOLUMNS (
'Table',
"After", [Attribute Value],
"AfterEmployee", [Employee],
"AfterDate", [Snapshot Date],
"AfterAttribute", [Attribute]
)Before =
SELECTCOLUMNS (
'Table',
"Before", [Attribute Value],
"BeforeEmployee", [Employee],
"BeforeDate", [Snapshot Date],
"BeforeAttribute", [Attribute]
)Table 2 =
FILTER (
CROSSJOIN ( 'After', 'Before' ),
[AfterEmployee] = [BeforeEmployee]
&& [BeforeAttribute] = [AfterAttribute]
)
2.Create visuals as follows.
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.