Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using Variable in bar chart

Hi all,

I have the below expression in a bar chart. Is it possible to store this in a variable and use it for multiple charts.

"=if(GetFieldSelections(Properties)='WithoutProperties'and GetFieldSelections(Reusability)='Output', count(DISTINCT {<BOFF={'Y'}>} OutputWithoutProperty),

if(GetFieldSelections(Properties)='WithProperties'and GetFieldSelections(Reusability)='Output', count(DISTINCT {<BOFF={'Y'}>} OutputWithProperty),

if(GetFieldSelections(Properties)='WithoutProperties'and GetFieldSelections(Reusability)='Input', count(DISTINCT {<BOFF={'Y'}>} InputWithoutProperty),

if(GetFieldSelections(Properties)='WithProperties'and GetFieldSelections(Reusability)='Input', count(DISTINCT {<BOFF={'Y'}>} InputWithProperty),

if(GetFieldSelections(Properties)='WithoutProperties'and GetFieldSelections(Reusability)='Both', count(DISTINCT BothWithoutProperty),

if(GetFieldSelections(Properties)='WithProperties'and GetFieldSelections(Reusability)='Both', count(DISTINCT BothWithProperty)))))))"


Please help. Also attached the QVW file.

Thanks,

Siva.

1 Solution

Accepted Solutions
wade12
Partner - Creator II
Partner - Creator II

settings -> variable overview -> add new variable -> paste in definition (no equal sign or quotes)

View solution in original post

3 Replies
Anil_Babu_Samineni

May be store without double quotes and check in your hand then tell us whether where you are getting issue.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
veidlburkhard
Creator III
Creator III

Hi siva,

you simply copy your expression into an input box as a new variable.

Please don't use an equal sign.
See the picture below:Reusables.jpg

Hope this helps

Burkhard

wade12
Partner - Creator II
Partner - Creator II

settings -> variable overview -> add new variable -> paste in definition (no equal sign or quotes)