PowerPivot - Formula Filtering

codilicj

New Member
Joined
Nov 10, 2017
Messages
2
[FONT=&quot]SKU Reason Code Total Cost Date[/FONT]
[FONT=&quot]A123 5 100 1/1/2017[/FONT]
[FONT=&quot]B456 98 200 1/2/2017[/FONT]
[FONT=&quot]A123 98 300 1/2/2017[/FONT]
[FONT=&quot]A123 98 400 1/3/2017[/FONT]
[FONT=&quot]Hello All,[/FONT]
[FONT=&quot]New to this forum. Looking for some support as I am stuck on a question.[/FONT]
[FONT=&quot]Question Attempting to Solve:[/FONT]

  1. In the table’s records above, SKU A123 has a Reason Code of 5 and 98
  2. When SKU A123 has a Reason Code of 98
  3. Then scan the table’s records to verify if SKU A123 has any Reason Code of 05
  4. If True, return the sum of Total Cost of SKU A123 for Reason Codes equal to 98 ONLY (answer = 700)
  5. If False, ignore/do not process
[FONT=&quot]I appreciate any assistance.[/FONT]
[FONT=&quot]Thank you,[/FONT]
[FONT=&quot]Cam[/FONT]
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Well you will probably need to use CONTAINS and VALUES. my guess is something like this should return true

=CONTAINS(VALUES(tableName[Reason]),tableName[Reason],98,tableName[Reason],5)

put the sku in a pivot on rows. You can use an if statement or similar to add the total you need when the above is true.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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