Forum Discussion
Data comparison over time
- 6 years ago
Hi giogio ,
You could merge these two tables with "full outer" mode.
Then use three measures to get the results.
FLOWS = VAR a = SELECTEDVALUE ( Merge1[FROM] ) VAR b = SELECTEDVALUE ( Merge1[TO] ) RETURN IF ( a <> BLANK (), IF ( b = BLANK (), "RETIREMENTS", IF ( a = b, "SAME", "CHANGE" ) ), "NEW" )# = CALCULATE ( COUNT ( Merge1[Custom] ), ALLEXCEPT ( Merge1, Merge1[FROM], Merge1[TO] ) )DETAIL = CONCATENATEX(Merge1,Merge1[Custom],",")Here is my test file for your reference.
Hi giogio ,
Could you please share your sample data and excepted result to me if you don't have any confidential Information. Please upload your files to One Drive and share the link here.
v-eachen-msft thank you for your interest!
Unfortunately my dataset is confidential, but I created an easy example (which much less entries) to better explain my problem.
I have two tables, let's call them Year1 and Year2 made of 2 columns each (ID and Location). ID represent a unique element that may be present in Year 1, Year 2 or both. The example dataset is in the picture below:
My goal is to compare the two tables highlighting the dynamics happened from year 1 to year 2 in relation with ID and Location. In the picture below I'm sharing the type of results I want to achieve (divided in two levels):
1) General Analysis (left side): How many additions, how many confirmation and how many retirements from year 1 to year 2; and for the confirmed items how many has changed location and how many have kept it. While doing so, I'd like to be able to drill down to IDs of the items.
2) Flows (right side): Visualize the changes in Location associated to the items, again being able to drill down to the single ID.
I hope this simple example clarifies a little bit my question. Of course I am also thinking about a graphical way to represent those data in a clear way (chord visual?)
Thanks for the help you may be able to give me!!