Spotfire, Calculated Columns to show Percentages -


i hope , can of assistance. have table , need calculated columns show percentage of 'no' 'yes' , 'empty' have. have attached picture below. enter image description here

any syntax appreciated.

enter image description here

error screenshot posted philip connell:

enter image description here

@philip connell - have created calculated column 'consent%' below expression , change format of column percentage column properties.

[number] / [total amount] 

used calculated column in cross table. screenshots below. please let me know if solution looking for. enter image description here

refined solution:

i have created sample data sake of explanation.

enter image description here

added pivot transformation (count of customer id) while loading sample data spotfire.

enter image description here

created 2 calculated columns.

total amount:

sum([count of customer_id]) on ([country])

consent%:

[count of customer_id] / [total amount]

enter image description here


Comments

Popular posts from this blog

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -