Forum Discussion
Calculated field with a column of string type
Hello
here is my spreadsheet in which I would like to create a calculated field after the GRAND TOTAL column.
| Source | ABC | |||||||||||
| Project | CustSTAT | |||||||||||
| RunDate | 05/05/2020 | |||||||||||
| CORPORATE | BY STATUS | |||||||||||
| DEPARTMENT | Signoff Waiting | Complete | Help Desk | In Progress | Cancelled | Grand Total | Completed % | |||||
| HR | 91 | 4,645 | 79 | 1,002 | 9,973 | 15,790 | 29.42% | Calculation should be count(Complete)/Grand Total | ||||
| SALES | 13 | 6,595 | 15 | 989 | 14,276 | 21,888 | 30.13% | |||||
| IT | 130 | 4,600 | 23 | 1,142 | 8,684 | 14,579 | 31.55% | |||||
| SECURITY | 8 | 1,269 | 3 | 248 | 5,231 | 6,759 | 18.77% | |||||
| QA | 21 | 562 | 4 | 168 | 1,833 | 2,588 | 21.72% | |||||
| PURCHASE | 7 | 599 | 1 | 389 | 1,452 | 2,448 | 24.47% | |||||
| MAINTENANCE | 70 | 24 | 924 | 1,018 | 6.88% | |||||||
| SUPPORT | 211 | 43 | 610 | 864 | 24.42% | |||||||
| BUILDING MAINT | 54 | 20 | 448 | 522 | 10.34% | |||||||
| GRAND TOTAL | 270 | 18,605 | 125 | 4,025 | 43,431 | 66,456 | 28.00% |
The calculation for the new calculated field is:
IF STATUS = "COMPLETE" THEN
COUNT(STATUS)/Total Number of Records
END
The new calculated field should be shown only if the status = complete.
I am experiencing trouble since it's creating the calculated columns to all the columns.
Any help is appreciated.
Thank you
Jay
Hi SergeiBaklan
Thanks very much. It worked. I wanted to control this measure to only one column.
I will send the snapshot of my excel after I added measure.
Thank you
Jay
4 Replies
- SergeiBaklanDiamond Contributor
Why don't you use measure ?
- JayRamaswamyCopper Contributor
Hi SergeiBaklan
Thanks very much. It worked. I wanted to control this measure to only one column.
I will send the snapshot of my excel after I added measure.
Thank you
Jay
- SergeiBaklanDiamond Contributor
JayRamaswamy , you are welcome. It's always better to avoid calculated columns where possible.
- JayRamaswamyCopper Contributor