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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Spurgeon74
Frequent Visitor

Mittelwert mit Bedingungen (Datenbereich)-Average with conditions

Hallo!

Gibt es die Möglichkeit einen Mittelwert über eine Datenreihe zu bilden der Werte <1 und >20 ausschliesst?

Bzw. wie sieht der DAX dazu aus? In Excel gibt es diese Funktion mit "mittelwertwenns".

Danke für eure Hilfe

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Spurgeon74 , You can create a DAX measure for this

 

AverageFiltered =
CALCULATE(
    AVERAGEX(
        FILTER(
            YourTable,
            YourTable[YourColumn] >= 1 && YourTable[YourColumn] <= 20
        ),
        YourTable[YourColumn]
    )
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@Spurgeon74 , You can create a DAX measure for this

 

AverageFiltered =
CALCULATE(
    AVERAGEX(
        FILTER(
            YourTable,
            YourTable[YourColumn] >= 1 && YourTable[YourColumn] <= 20
        ),
        YourTable[YourColumn]
    )
)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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