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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
zachtatum
Frequent Visitor

Aggregation Measures for my data

I am trying to use quick measures to find the max, min, and average by brand. The report page is filtered for a specific model (example: Ford F-150), but I want to know the aggegation by Brand only, not for the specific model within the Brand.

 

BrandGrossRev
ford3.7
toyota4.3
ford5.1

 

Here's the quick measure that is calculating the value for the specific page report (Ford F-150).

 

GrossRev_3YrTotal average per Brand =
AVERAGEX(
    KEEPFILTERS(VALUES('datasource1'[Brand])),
    CALCULATE(SUM('datasource2'[GrossRev_3YrTotal]))
)
3 REPLIES 3
zachtatum
Frequent Visitor

Thank you for your help.

 

My mistake. The [Brand] and [GrossRev] are on separate tables that share a projectID.

Anonymous
Not applicable

Hi @zachtatum ,

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

Anonymous
Not applicable

Hi @zachtatum ,

It seems that you data like the following:

 

Brand

GrossRev
ford 3.7
toyota 4.3
ford 5.1

 

Please have a try.

max_measure =
MAXX (
    FILTER ( ALL ( table ), table[brand] = SELECTEDVALUE ( table[brand] ) ),
    table[grossrev]
)
min_measure =
MINX (
    FILTER ( ALL ( table ), table[brand] = SELECTEDVALUE ( table[brand] ) ),
    table[grossrev]
)
AVERAGEX_measure =
AVERAGEX (
    FILTER ( ALL ( table ), table[brand] = SELECTEDVALUE ( table[brand] ) ),
    table[grossrev]
)

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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