Forum Discussion
How to add a conditional formula to a Pivot?
See if attached file does what you expect...
as I have a hard time to figure out a couple of things (might be me 🙂 - it's quite late my time)
Hello Lorenzo
First, thank you for your help, and I apologize for the delayed reply. In your scenario, is there a way to create a filter for items that have purchase and negative adjustment values only?
Basically, what I need to know is which products were purchased this month and also adjusted this month.
- LorenzoOct 24, 2024Silver Contributor
Hello enavarrobernal
Below is an easy solution with a classic PivotTable where you'll have to filter [Item No.] on Calculated Field [Display Item] = 1 (as highlighted that column can be hidden):
Calculated Field:
= AND( Purchase > 0, 'Negative Adjmt.' < 0 )
This won't prevent you from filtering on specific [Item No.] if necessary
Other options (no add. column) exist but depend on which version of Excel you run & on which platform (Windows, Mac...), info. you haven't provided so far
Let me know how it goes with this...
- LorenzoNov 06, 2024Silver Contributor
Hope you're going well...