Forum Discussion
alsm
Helper III
3 years agocalculate sum with multiple criteria
Hello I have a table that somewhat looks like Industry Sub-Industry Volume Energy Equipment & Services Drilling 100 Energy Equipment & Services Oil & Gas Equipment & Services 150 ...
- 3 years ago
Hi alsm ,
There are many ways to write this, however this works:Sum = CALCULATE ( SUM ( IndustryResearch[Volume] ), FILTER ( IndustryResearch, IndustryResearch[Industry] IN { "Energy Equipment & Services", "Oil, Gas & Consumable Fuels" } && IndustryResearch[Sub-Industry] = "Drilling" ) ) + CALCULATE ( SUM ( IndustryResearch[Volume] ), FILTER ( IndustryResearch, IndustryResearch[Industry] = "Metals & Mining" && IndustryResearch[Sub-Industry] = "Diversified Metals & Mining" ) )
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
alsm
Helper III
3 years agoNathaniel_C Thank you for your reply, it works. I have a followup question (don't know if I should ask another question or simply here). Can I create a filter variable which has common filter criteria and then use this common filter + additional filter lines in each calculate rows?
Nathaniel_C
Community Champion
3 years agoHi alsm ,
Would you give me an example of what you mean?
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel