Hello all
I have a table with identities, that have different accounts with different attributes on different applications. Some identities also have more than one account on the same application.
I have made a demo setup and it looks like this:
OneRowPerIdentity1.png
So for instance, it shows that Identity1 has 2 accounts on the AppX application, which has 3 attributes and that those attributes have different values on the 2 accounts. Please note, that the attributes are also named differently on the applications in my actual setup, but for clarity, I have called them Att1, Att2 and Att3 on all applications in this demo.
It is generic how many accounts an identity might have on an application - some applications might have identities that have 3 accounts, while other applications might only have 1 or 2 account per identity.
What I would like to do, is to trim this down to one row per identity, so all the applications and attributes for each identity are shown horizontally, like this:
OneRowPerIdentity2.png
To make this generic, it will have to make columns for each attribute times the max number of accounts any identity has on that given application, for instance indicated by a prefixed number 1. and 2. etc. (eg 2.AppX.AccountID and 2.AppX.Att1, for the second account). I hope this makes sense
I have tried to mess around with this in powerquery for a while now with grouping and pivoting etc., but I simply cant get it to work, and I would really appreciate any help with this.
Thanks in advance and best regards
Imbizile
Bookmarks