Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

to pass a selected value from field into formula

Hi Qlikview Community,

how can i put the selected value from field to pass in to my formula ? [*-)] Please see screenshot !

Thank you very much [8-|]

Best Regards,

1 Solution

Accepted Solutions
rbecher
MVP
MVP

..this should go (with no quotes):

= 'Totalprice (TOTAL) PLAN: ' & sum ({1< [HEL_DATA_Datum > YEAR] = {$(=GetFieldSelections([HEL_DATA_Datum > YEAR]))} >} SAL_OPPORTUNITYLINEITEM_TotalPrice )


- Ralf

Astrato.io Head of R&D

View solution in original post

10 Replies
Not applicable
Author

Hi,

You can just include the file name or use it with another function like Only() or Max(), so you have something like this:

sum({1<[YEAR]={'$([YEAR])''}>} TotalPrice)

or

sum({1<[YEAR]={'$(max([YEAR]))''}>} TotalPrice)

Hope this helps

Regards!

Not applicable
Author

Hi Gabriela,

it did not work Hmm But thank you for help Angel

Not applicable
Author

the expression: GetFieldSelections( fieldname) returns a string containing the current selections in a given field.

looks like that function should help you out.

Chris



Not applicable
Author

Hi Chris,

do you mean in that way:

=sum ({1< [YEAR] = { GetFieldSelections( [YEAR] ) } >} TotalPrice ) ?

This wont work too Sad

Regards,

Not applicable
Author

does the following statement work:

=sum ({1< [YEAR] = {'$(=GetFieldSelections(" [YEAR]" ) '} >} TotalPrice )

If not, please attach an example file.

Chris

rbecher
MVP
MVP

Onur,

your field name is a bit confusing... Wink try this:

=sum ({1< [HEL_DATA_Datum > Year] = { GetFieldSelections( [HEL_DATA_Datum > Year] } >} TotalPrice )


- Ralf

Astrato.io Head of R&D
Not applicable
Author

Hi Chris,

thank you for helping me. Unfortunately it didnt work again. Here are my qvw file. It is the Textfield under the textfield "Total Price PLAN".

Thank you again.

Not applicable
Author

Hi Ralf,

hmmm, unfortunately with no effect to the textfiled.

Best Regards,
Onur

rbecher
MVP
MVP

..this should go (with no quotes):

= 'Totalprice (TOTAL) PLAN: ' & sum ({1< [HEL_DATA_Datum > YEAR] = {$(=GetFieldSelections([HEL_DATA_Datum > YEAR]))} >} SAL_OPPORTUNITYLINEITEM_TotalPrice )


- Ralf

Astrato.io Head of R&D