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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filtered Average Value

Hi! I am still figuring my way around Power BI therefore I am facing some difficulties with the following.
I have this Table "Requirements":

ToolAccountRequirements Level 1Requirements Level 2Value
SpoonSalesAAA1
SpoonSalesAAB2
ForkSalesBBA3
ForkSalesBBB4
ForkSalesCCA5
KnifeSalesCCB5
KnifeSalesCCC6
KnifeSalesCCD7

 

What I am trying to achieve is described in the attached picture (thought it would be much easier if I offered a visual, forgive my drawing skills).
I need to show the average sale value for each Requirement level 1 (A, B, C) with the tool as the legend.
I am pretty sure I need to use a DAX formula but maybe I need to create a new column? Please help I am rather confused!

Heeelp.png

Thank you so much in advance!

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, you want to create a measure to get a column chart as you expected, you can try this measure:

This is my test data, I added some data based on yours to display value for each column in the chart, like this:

v-robertq-msft_0-1614585175738.png

Average = 
CALCULATE(
    AVERAGE('Table'[Value]),
    FILTER(
        ALLSELECTED('Table'),
        [Tool]=MAX('Table'[Tool])&&
        [Requirements Level 1]=MAX('Table'[Requirements Level 1] )))

Then I create a Clustered column chart and placed it like this:

v-robertq-msft_1-1614585175769.png

 

And you can get what you want.

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

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

View solution in original post

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, you want to create a measure to get a column chart as you expected, you can try this measure:

This is my test data, I added some data based on yours to display value for each column in the chart, like this:

v-robertq-msft_0-1614585175738.png

Average = 
CALCULATE(
    AVERAGE('Table'[Value]),
    FILTER(
        ALLSELECTED('Table'),
        [Tool]=MAX('Table'[Tool])&&
        [Requirements Level 1]=MAX('Table'[Requirements Level 1] )))

Then I create a Clustered column chart and placed it like this:

v-robertq-msft_1-1614585175769.png

 

And you can get what you want.

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

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

AlexisOlson
Super User
Super User

You can do this without writing any DAX.

 

Create a clustered column chart and put Requirements Level 1 in the Axis filed, Tool in the Legend field, and Value in the Values field (and choose Average from the drop-down where you can choose what aggregation to use).

 

For your data:

AlexisOlson_0-1614274094979.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors