S
shubha.bala
Hi everyone,
I have created a pivot table which is looking good so far, however I
am having problems with this one additional column, which I think I
need a Calculated field for.
It looks like this:
Items A Items B
# Items Weighted # # Items Weighted
#
Red
Green
Blue
Purple
I also have a column in my source data called Priority. I want to
have a column beside Weighted # (for each of my Items) which shows me
the total number of rows in each colour group which has the priority
1. I don't care at all about the other priorities. I tried making a
calculated field that does this: =IF(Priority=1, 1, 0) but it isn't
working properly. It is showing me a value of 1 on some rows, but 0
on most of them.
I've tried it with other priority values and it still shows me
sporadic 1s. I also tried returning 1 for true and false, and it
showed a 1 in every column although I was expecting it to basically
show me a count of every single row with a value in Priority, since
I'm told calculated fields sum!
Lastly..I can't do this as a column item I think because it then ends
up showing me # Items and Weighted # based on priorities...but those
values I just want a total sum (priority doesn't matter).
I feel like I'm barking up the wrong tree with the IF idea. COUNTIF
gives me an error. Any thoughts?
I have created a pivot table which is looking good so far, however I
am having problems with this one additional column, which I think I
need a Calculated field for.
It looks like this:
Items A Items B
# Items Weighted # # Items Weighted
#
Red
Green
Blue
Purple
I also have a column in my source data called Priority. I want to
have a column beside Weighted # (for each of my Items) which shows me
the total number of rows in each colour group which has the priority
1. I don't care at all about the other priorities. I tried making a
calculated field that does this: =IF(Priority=1, 1, 0) but it isn't
working properly. It is showing me a value of 1 on some rows, but 0
on most of them.
I've tried it with other priority values and it still shows me
sporadic 1s. I also tried returning 1 for true and false, and it
showed a 1 in every column although I was expecting it to basically
show me a count of every single row with a value in Priority, since
I'm told calculated fields sum!
Lastly..I can't do this as a column item I think because it then ends
up showing me # Items and Weighted # based on priorities...but those
values I just want a total sum (priority doesn't matter).
I feel like I'm barking up the wrong tree with the IF idea. COUNTIF
gives me an error. Any thoughts?