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

Average grouped by filters as a column in a table

I have a table in summary page which has average per location by months (Sum of new patients divided by count of locations), I want to have a two columns average new patients by location in state and bucket level, which are my two filters. I have attached my pbix file here. SALESCopy.pbix

2 REPLIES 2
Anonymous
Not applicable

Hi @amitchandak ,

I am trying to compare average of new patients per loc by average of new patients per loc by state, so one account would have average of new patients per loc, and average in state would be the sum of new patients in that state (multiple accounts) / no of locations in that state.

The two tables below were for reference, so I need a state-wise average as well, and the numbers are correct in that table .

amitchandak
Super User
Super User

@Anonymous , Your measure needs to be like

Average NewPatient per location =
divide(sum(NewPatient[NewPatientsCount]), count(Location[c_LocationKey]))

 

Also, not sure why there different table for state, bucket , Using above measure and set of dimesion it should come from one table

 

example

Average New Patients by State =
CALCULATE (
SUM ( [Average NewPatient per location],
ALLEXCEPT (Location,  Location[State] )
)

 

In case they are coming from different tables from source, then create common dimensions and have mesures like the first one

 

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solution-8e3eccb41bda

 

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

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

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