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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Filter and Average based on category

 

Hi all,

 

I'm trying (and failing!) to pull and display the average of one column, based on the identified category from another - reactive to a Filter or Slicer at the page level. 

 

Data structure looks like;

 

Account ID Account Name Grand Total  ACV ACV RankEmployee Bucket
0014000000aWncBAASBob 2300015000885a) 1-2
0014000001llJaVAAUJeff445786501142b) 3-4
0014000001llJb4AAERandy446847794138929a) 1-2
001300000089l9FAAQMichael 28049201143c) 5-6
0014000000diMnNAAUWendy2233619336731a) 1-2
0014000001llGWFAA2Neha74673601144b) 3-4
 

And what I'm trying to do is give the user an option to Filter or Slice by name, and then have a Card (or Multi-Row Card) display the average of the 'Grand Total' Column for the accordant category that the name is in in the 'Employee Bucket' category.

 

ie I'd like a user to filter/slice for 'Wendy', and then have a card display the average (ideally median) of all 'Grand Total's in the 'Employee Bucket' category 'a 1-2) - taking the average of Bob + Randy + Wendy, all of whom are in that bucket.

 

Does anyone have any ideas on a reactive Measures Filter that could help? Thanks so much in advance. 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , What you are showing is a visual table or your data table?

 

All measures will respond to the filter of columns in that table and related table unless those have been removed using all or some other option.

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi amitchandak,

 

Thanks! That's the data table. I'm trying to display, in three different Cards;

 

Wendy's Grand Total ('Her Average')

Average of all Accounts Grand Total ('total average')

Average of just those who match her 'Employee Bucket' category (= a) 1-2) ('peer group total')

 

I'm able to account for them with;

 

Card: Grand Total (sliceable) -> Select Wendy - 'her average'

Card: Grand Total (unfiltered - all values) - 'total average'

Card: Grand Total (filtered by all those who match Employee Bucket = 'a) 1-2') - 'peer group average'

 

Unfortunately, I can't set the third filter at the page or viz level as static, as I want the bit in bold to update to match the Slicer selection (ie I don't always want to select 'Wendy'). So I seem to need a 'LOOKUP -> Filter Measure' based on my slice selection. 

 

Does that help? (and thank you!)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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