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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
kris_vliegen
Partner - Creator III
Partner - Creator III

error with set Analysis

Hi All,

I have a problem with set analyses.

If I use this =avg( { $ < Site_Id_Name = {  $(vEigenStation)    }  >   }   Pump_price)

I get an error "Error in set modifier ad hocelement list"

If I use this =avg( { $ < Site_Id_Name = { " $(vEigenStation)"    }  >   }   Pump_price)

I don't get a value

who can help me?

Regards,

Kris

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

Use single quotation marks:

If I use this =avg( { $ < Site_Id_Name = { '$(vEigenStation)'    }  >   }   Pump_price)

View solution in original post

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Second one is the correct one.

Make sure the variable is holding a proper value before passing to the set analysis.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sasiparupudi1
Master III
Master III

avg( { $ < Site_Id_Name = { "$(=$(vEigenStation))"}  >   }   Pump_price)
kris_vliegen
Partner - Creator III
Partner - Creator III
Author

This isn't working.

This is what I have

variabele12.JPG

petter
Partner - Champion III
Partner - Champion III

Use single quotation marks:

If I use this =avg( { $ < Site_Id_Name = { '$(vEigenStation)'    }  >   }   Pump_price)

qlikmsg4u
Specialist
Specialist

avg( {$<Site_Id_Name = {"ESSO EXPRESS WOMMELGEM (75)"} >} Pump_price)

check this and let us know if it is working


PS:change the text in bold to your original value because it may contain typo errors

kris_vliegen
Partner - Creator III
Partner - Creator III
Author

Thanks All,

it is working!!