Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Unpivoting in Frontend

Hi all,

I have Good, under, Over ,assemblies, Materials, Production columns in my pbi

In these columns True, Blank values are there

I want these good, bad, under and all to be shown in status and count of True values for each status

For example if i select 215 from Top_code slicer the chart must show count of true for each status, like this it must give count of true for whatever Column filter I give

I used below, but it giving correct count only for top parent, but not for all

UNION(SELECTCOLUMNS(FILTER('JOINS','JOINS'[Good]="TRUE"),"Top Parent",[TOP_PARENT_SUPP_CODE],"Status","Good"),

      SELECTCOLUMNS(FILTER('JOINS','JOINS'[Over]="TRUE"),"Top Parent",[TOP_PARENT_SUPP_CODE],"Status","Under"),

      SELECTCOLUMNS(FILTER('JOINS','JOINS'[Under]="TRUE"),"Top Parent",[TOP_PARENT_SUPP_CODE],"Status","Over"),

      SELECTCOLUMNS(FILTER('JOINS','JOINS'[No Material Or Assembly Shipped]="TRUE"),"Top Parent",[TOP_PARENT_SUPP_CODE],"Status","No Material or Assembly Shipped"),

      SELECTCOLUMNS(FILTER('JOINS','JOINS'[Only Assemblies Shipped]="TRUE"),"Top Parent",[TOP_PARENT_SUPP_CODE],"Status","Only Assemblies Shipped"),

      SELECTCOLUMNS(FILTER('JOINS','JOINS'[New Model Parts Not In Production]="TRUE"),"Top Parent",[TOP_PARENT_SUPP_CODE],"Status","New Model Parts Not In Production")
)





Please help

2 Replies