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
Syndicate_Admin
Administrator
Administrator

Help with averages and cross filters

Hello friends. I have the following related tables. In the table above it shows the total consumed by "surgery", in the table below it shows the detail of all the inputs used.

muestra1_.JPG

The problem I have is that in the table below, I need to compare the supplies used and the average use of said supplies in a similar surgery. I want this when I filter some data from the table above.

muestra2_.JPG

In logical terms, I need: first of all, to calculate the average by inputs (number of inputs / number of surgeries), and if I select something from the table above, to calculate (number of inputs / number of surgeries) by service_performs

Attached sample file. Thanks a lot!!

Captura_3.JPG

ARCHIVO PBI

https://drive.google.com/file/d/181kKsNnm5i7Hfzx4ZERCDLywPzJ0kPM7/view?usp=share_link

1 REPLY 1
Anonymous
Not applicable

Hi @Syndicate_Admin ,

 

If I understand correctly, the formula should be similar to this:

Measure = IF(ISFILTERED('Cirugias'[Nº Cirugia]),[AVERAGE1],[AVERAGE2])

 

//In logical terms, I need: first of all, to calculate the average by inputs (number of inputs / number of surgeries), and if I select something from the table above, to calculate (number of inputs / number of surgeries) by service_performs

But I failed to understand the sentence, how should they be calculated?

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

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