Multiple FILTERS in aggregateX function?

General Ledger

Active Member
Joined
Dec 31, 2007
Messages
460
Dear All,

I am trying to use the aggregate function MINX with FILTER within PowerPivot (not in a PivotTable). I need to apply more than one FILTER. Everything I try fails and I cannot find online examples of using more than one FILTER in an aggregateX function. Any help out there?

Filtering on one field works fine.
=MINX ( FILTER ( Table1, Table1 [Field1] = A ), [Field3] )

The follow attempts to filter on more than field result in errors:
=MINX ( FILTER ( Table1, Table1 [Field1] = A ) AND ( Table1, Table1 [Field2] = B ), [Field3] )
=MINX ( FILTER ( Table1, Table1 [Field1] = A ) && ( Table1, Table1 [Field2] = B ), [Field3] )
=MINX ( FILTER ( (Table1, Table1 [Field1] = A) && (Table1, Table1 [Field2] = B) ), [Field3] )

Thanks,

G/L
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
The FILTER() function takes exactly 2 args, the table and the expression to filter. Try:

FILTER(Table1, Table1[Field1] = A && Table1[Field2] = B) <--- both condition are inside a single FILTER.
 
Upvote 0

Forum statistics

Threads
1,224,011
Messages
6,175,928
Members
452,684
Latest member
RRaively1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top