Forum Discussion
rhayward2209
5 years agoHelper I
Creating a hierarchy using data points
Hi There, When the data i use is exported it loses the hierarchy that is set in the database and I am trying to reinstate that so that the data flows up and down properly. An example of what I ha...
- Anonymous5 years ago
Hi rhayward2209 ,
Based on your description, you can create a calculated table as follows.
Test =
var x1=SUMMARIZE(FILTER('Table',LEFT([Group],3)="Ind"),[Group],'Table'[Order Number],'Table'[Cost],'Table'[Revenue])
return
ADDCOLUMNS(x1,"Sub",IF(LEFT(RIGHT([Order Number],5),2)="01","Sub Group 1","Sub Group 2"),"Head","Header Group")Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
Hi rhayward2209 ,
Based on your description, you can create a calculated table as follows.
Test =
var x1=SUMMARIZE(FILTER('Table',LEFT([Group],3)="Ind"),[Group],'Table'[Order Number],'Table'[Cost],'Table'[Revenue])
return
ADDCOLUMNS(x1,"Sub",IF(LEFT(RIGHT([Order Number],5),2)="01","Sub Group 1","Sub Group 2"),"Head","Header Group")
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.