Hi,
I'm working in Powerpivot and trying to make the simplest of Count functions and cannot figure it out. I keep getting an error message. Essentially, I have three columns... one that says an airline name, one that says the type of plane it ordered (Embraer or Bombardier), and the last column that says the year it ordered that plane.
So for instance, it might read:
(This image is in excel, but I am working in powerpivot..)
I need to count simply for each year from 2010 to 2015, how many Embraers were ordered, and how many Bombardiers were ordered, for each year.
So for instance, the result should be. Embraer for 2010 should be 2. Bombardier for 2010 should be 0. Embraer for 2011 should be 0. Bombardier for 2011 should be 1.
How on earth do I do this? I've tried just counting how many planes in general were ordered per year and tried doing a CALCULATE(COUNTROWS('table', column c=2010)) but this didn't work. I know my logic is wrong, but I have no idea why or how- I've read countless posts and they all deal with much more confusing statements than this. Please help! Thank you!!
Thomsup
I'm working in Powerpivot and trying to make the simplest of Count functions and cannot figure it out. I keep getting an error message. Essentially, I have three columns... one that says an airline name, one that says the type of plane it ordered (Embraer or Bombardier), and the last column that says the year it ordered that plane.
So for instance, it might read:
(This image is in excel, but I am working in powerpivot..)
I need to count simply for each year from 2010 to 2015, how many Embraers were ordered, and how many Bombardiers were ordered, for each year.
So for instance, the result should be. Embraer for 2010 should be 2. Bombardier for 2010 should be 0. Embraer for 2011 should be 0. Bombardier for 2011 should be 1.
How on earth do I do this? I've tried just counting how many planes in general were ordered per year and tried doing a CALCULATE(COUNTROWS('table', column c=2010)) but this didn't work. I know my logic is wrong, but I have no idea why or how- I've read countless posts and they all deal with much more confusing statements than this. Please help! Thank you!!
Thomsup
Last edited: