Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

average from table at higher granularity

I've seen other similar posts but nothing has really gotten me the result I need.  This is an SSAS data source. I have a table, ItemDetail, that has cost records broken down to the Branch, Item, Loca...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Anonymous 
    In the example in the original post, it seems you are looking to get average cost just by Item (12.67 and 6). It is not necessary to filter the brand column in filter expression.

     

    Measure = CALCULATE(AVERAGE([Unit Cost]),FILTER(ALLSELECTED('Table (2)'),[Item]=MAX([Item])))

     

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.