Forum Discussion

LeaRupnik's avatar
LeaRupnik
Helper III
5 years ago

Avrege with filters

Hello, 

 

I'm new in Dax formula, a would like to ask how to calculate an average with a filter. 

In Power BI a get a value of 1,251 in excel is this value a 1,267. what I do wrong. 

 

Please help.

 

 

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    LeaRupnik It would be good if you had given the sample table anyways i hope this will help you

     

    you can make use of the below formula

     

    Average=calculate(average(sum(salestable[salesunit])))

     


    Appreciate your Kudos, Press the thumbs up button!!👍

     

    Regards,

    Husna

  • v-alq-msft's avatar
    v-alq-msft
    Community Support

    Hi, LeaRupnik 

     

    Based on your description, you may create a measure as below. The pbix file is attached in the end.

    Table:

     

    You may create a measure as below.

    Result = 
    AVERAGEX(
        'Table',
        'Table'[Value]
    )

     

    Result:

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.