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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-cgao-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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