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
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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.