Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
LeaRupnik
Helper III
Helper III

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.

 

LeaRupnik_0-1613133948720.jpeg

 

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @LeaRupnik 

 

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

Table:

j1.png

 

You may create a measure as below.

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

 

Result:

j2.png

 

Best Regards

Allan

 

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

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

Hello @Anonymous  and @v-alq-msft 

 

in link is an example of what we like to do. 

https://drive.google.com/drive/folders/1kNxDiE9t47AH2H7JZuTLLz1USbrCx7kD?usp=sharing

 

THX

Lea

 

Hi, @LeaRupnik 

 

I am sorry for the late reply. I modified data based on your sample data. The pbix file is attached in the end. You may create a measure as below.

Measure = 
AVERAGEX(
    SUMMARIZE(
        List1,
        List1[Column1],
        "Result",
        AVERAGE(List1[Column2])
    ),
    [Result]
)

 

Result:

b1.png

 

Best Regards

Allan

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.