Forum Discussion
Hanuma_Srikiran
8 years agoFrequent Visitor
Comparing Two columns with Output (Parent and Child relation)
Hi , I have a source file like below Child Parent Parrot Pet LoveBirds Pet Eagle Adventures Bat Adventures Lion Wild Tiger Wild Cow Domestic Goat Domestic Wha...
- 8 years ago
Try this Calculated Table.
New Table = VAR AllParent = SELECTCOLUMNS ( TableName, "AllParents", TableName[Parent] ) VAR Firstparent = ADDCOLUMNS ( EXCEPT ( ALL ( TableName[Child] ), ALL ( TableName[Parent] ) ), "FirstParent", CALCULATE ( VALUES ( TableName[Parent] ) ) ) VAR secondparent = ADDCOLUMNS ( SELECTCOLUMNS ( Firstparent, "LastChild", [Child], "FirstParent", [FirstParent] ), "SecondParent", LOOKUPVALUE ( TableName[Parent], TableName[Child], [FirstParent] ) ) VAR thirdparent = ADDCOLUMNS ( SUMMARIZE ( secondparent, [LastChild], [FirstParent], [SecondParent] ), "ThirdParent", LOOKUPVALUE ( TableName[Parent], TableName[Child], [SecondParent] ) ) VAR Fourthparent = ADDCOLUMNS ( SUMMARIZE ( thirdparent, [LastChild], [FirstParent], [SecondParent], [ThirdParent] ), "FourthParent", LOOKUPVALUE ( TableName[Parent], TableName[Child], [ThirdParent] ) ) RETURN FILTER ( UNION ( SUMMARIZE ( Fourthparent, [LastChild], [FirstParent] ), SUMMARIZE ( Fourthparent, [LastChild], [SecondParent] ), SUMMARIZE ( Fourthparent, [LastChild], [ThirdParent] ), SUMMARIZE ( Fourthparent, [LastChild], [FourthParent] ) ), [FirstParent] <> BLANK () )
Anonymous
4 years agoNot applicable
hello every one i have a similar issue:
i have a table witch contains all services
Service1
Service2
Service3
Service4
Service5
Service6
Service7
and another table witch contains services with features and i want to pie chart and show whitch services are not being used (plot their name)
thank you,