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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
maurizio75
Frequent Visitor

calculate formula with filter from two different tables

Hi, 

I am having problem in creating a calculate formula which has filters from two tables.

I have one tables 'Block' containing information like[Valves], [flow rate l/hr] and another table 'Records' whith information like [Irrigation length] and [ Shift]; and also I have a 'Date' table. 

I am trying to run a power pivot table listing all the valves (rows) and weeks (coloumns) and as values the ratio between the flow rate for each valve and the total flow rate for the valve with same shift.

DivisionValveFlow rate (l/hr)
WestA30
WestB25
WestC10
WestD20
East

E

30
EastF25

 

DateValveIrrigation lenghtShift
01/02/2019A0.51
01/02/2019B0.61
01/02/2019A11
02/02/2019A21
02/02/2019B11
03/02/2019C22
03/02/2019A11
06/02/2019D0.52
07/02/2019E0.53
09/02/2019C

0.5

2

 

Formula I am using is sum(Blocks[flow rate])*Calculate(sum(Blocks[flow rate]),filters(Recods[Shift],All(Blocks[Valves]))

Thanks in adnvance if anyone can help

 

2 REPLIES 2
Anonymous
Not applicable

what output are you expecting?

 

Please be clear with your requirement.

Hi,

my expectation is to have something like that, where Valve run together on the same shift for the week add up to 100% (e.g. week 1 valve A and B are shift 1 and together is 100%, but I don't want the shift number to appear on the table)


Valve   

ValveWeek1Week 2Week 3Week 4
A60%60%60%35%
B40%40%40%30%
C80%80%80%35%
D20%20%20%100%
E70%70%70%70%
F30%30%30%30%

 

Thanks in advance if you can give me any help

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.