Sum on a crystal column returned by function as table.column.

crystal reports v.9 question: is there a way to make crystal take a concatinated string as a table column given concatinated output is in proper cystal table.column format ? we have a table with many numaric columns. with a function and string concatination we get to display table.column name properly however doing sum() on concatinated string output will not work.
ivan_belalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

VenkatgviCommented:
r u going to use  it in a formula or sql expression or in a command
venkateshG
0
SujithData ArchitectCommented:
post the query.
0
ivan_belalAuthor Commented:
In a command. table many numaric columns. based on user selected parameter we want to do sum on corresponding numaric column.
0
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

mlmccCommented:
It is still not clear what you are trying to do.  Can you provide a sample data record and show what you want done.

mlmcc
0
ivan_belalAuthor Commented:
table1(col1, col2, col3) -- all numaric columns; how can one sum on any one column based on user passed value from a column selection parameter. 2) filter table1 based on passed value from a column selection parameter

example user selects col2 thru parameter i want crystal to filter table1 records using table1.col2 as table1.col2 <> 0 and sum on col2 hope this helps. hardcoding is not feasible as table1 as many numaric columns.
0
mlmccCommented:
You can use a filter in th eselect expert

If ({?YourParam} = 'Col1') then
   {Table.Col1} <> 0
Else If ({?YourParam} = 'Col2') then
   {Table.Col2} <> 0
Else If ({?YourParam} = 'Col3') then
   {Table.Col3} <> 0

Add a formula to the report
If ({?YourParam} = 'Col1') then
   {Table.Col1}
Else If ({?YourParam} = 'Col2') then
   {Table.Col2}
Else If ({?YourParam} = 'Col3') then
   {Table.Col3}

You can then put the formula on the report and summarize it.

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ivan_belalAuthor Commented:
this is what actually i have but was trying to avoid hardcoding if possible when i have over 100 numaric columns, thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB Reporting Tools

From novice to tech pro — start learning today.