Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Material wise Sum and divide with common materials.

Dear Experts,

 

I am in need of a DAX formula for the below mentioned query and screenshot. I have tried in different ways to meet the exact output. Could anyone please help me out of it. 

 

 

 

Regards,

Ajay

  • Anonymous , Try measure like

     

    calculate(sum(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))

     

     

    calculate(Average(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))

1 Reply

  • Anonymous , Try measure like

     

    calculate(sum(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))

     

     

    calculate(Average(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))