We have two queries, (1) Cost Center (2) PS
I merged on Company Code, Internal Order, Equipment id
Record Category are LBR, MTL, Others
Fields on the report are
Equip class, Equip Id, Equip ownership, Actual_Amt_Lbr, Budget_Amt_Lbr, Actual_Amt_MTL, Buget_Amt_MTL
001_eclass
Actual_Amt_Lbr= If ([Record Typ ]="04" And [Record Category]="LBR") Then Sum([Sum Actual]) Else 0
Buget_Amt_Lbr= If ([Record Type Id]="01" And [Record Category]="LBR") Then Sum([Sum budget]) Else 0
Actual_Amt_MTL= If ([Record Typ ]="04" And [Record Category]="MTL") Then Sum([Sum Actual]) Else 0
Buget_Amt_MTL= If ([Record Type Id]="01" And [Record Category]="MTL") Then Sum([Sum budget]) Else 0
I am getting multi value for measures i.e. Actual_Amt_Lbr, Budget_Amt_Lbr, Actual_Amt_MTL, Buget_Amt_MTL
My scenario is
One Euipment class has many Equipment id with record typ 01 and 04 and the same Equipment id has record category LBR and MTL
Data is as follows:
Equip_class, Equip_id, Equip_own, LBR_actual, LBR_Budget, Record_Type, Record_cat
001_eclass 001 owner 0 2100 01 LBR
001_Eeclass 001 owner 0 500 01 MTL
001_eclass 001 owner 0 100 01 others
001_Eeclass 001 owner 500 0 04 LBR
001_Eeclass 001 owner 200 0 04 MTL
001_Eeclass 001 owner 500 0 04 Others
001_Eeclass 002 owner 500 0 04 LBR
Used sum([Sum Actual] ForEach ([Record_Type];[Record_cat]) is not working