Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can someone please let me know is it possible to pick column name from variable and use it in set analysis?
I have created a drop down and added 4 -5 column names and when user selects any column from dropdown it calculates on the basis of that something like
=Count(Distinct {<{(year_col) = {$(year)}>} IDS)
Thanks a lot for support
Your application works in principle. You just need to quote the year field names in your script to get the data correctly loaded in. There was also a typo in your expression 'sales' instead 'Sales'.
Might be possible if you use dollar sign expansion for that, something like
=Count(Distinct {< $(year_col) = {$(year)}>} IDS)
where year_col needs to be your variable and must expand to a valid field name.
not working i tired
Could you post a small sample?
sure how can i add a file here
Use the advanced editor, there is an 'Attach file' option. Follow the link on the upper right corner in standard editor, or it should be the default editor when you edit an existing post.
=Count(Distinct {<{$(year_col) = {$(=year)}>} IDS)
Your application works in principle. You just need to quote the year field names in your script to get the data correctly loaded in. There was also a typo in your expression 'sales' instead 'Sales'.
Many thanks fro your help I wll try it.