Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Group by a report Column

I have a table 

IDItemCost
1A100
1B200
1C300
2A200
2B200

 

if we say the average cost per item

Average cost : =Average (cost)

now I want to find the maximum average per Item so the output will be

Itemavgmax avg
A150200 (which is an average of B)
B200200
C150200

 

how can I write a max avg Equation....

thank you

  • Anonymous -

    You can do as:

    Measure = 
    CALCULATE(
        AVERAGE(TableName[Cost]),
        REMOVEFILTERS(TableName[Item])
    )

1 Reply

  • ChrisMendoza's avatar
    ChrisMendoza
    Resident Rockstar

    Anonymous -

    You can do as:

    Measure = 
    CALCULATE(
        AVERAGE(TableName[Cost]),
        REMOVEFILTERS(TableName[Item])
    )