Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
bruno_silva100
Contributor III
Contributor III

Problem with set analys - Variable

Hey Guys, I have a problem with set analysis. I tried much forms, but i didn't get the result, only when i use the if.

worked

sum(if($(vPeriodoFiltro)=1,[Quantidade Vendida])) 

not worked

sum( {$ <'=$(vPeriodoFiltro)'={"1"} >}[Quantidade Vendida]) -

sum( {$ <vPeriodoFiltro={"1"} >}[Quantidade Vendida])

sum( {$ <vPeriodoFiltro={'1'} >}[Quantidade Vendida])

sum( {$ <$(vPeriodoFiltro)={'1'} >}[Quantidade Vendida])

Anybody know the form correct ?

Labels (1)
1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

In your scenario, set analysis wont help, because for set analysis to work, you need a field name as Set identifier.

It can not take Variable as Set Identifier.

So your original expression is the only way to get this work.

 

Regards,

Kaushik Solanki

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

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

In your scenario, set analysis wont help, because for set analysis to work, you need a field name as Set identifier.

It can not take Variable as Set Identifier.

So your original expression is the only way to get this work.

 

Regards,

Kaushik Solanki

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

Tks @kaushiknsolanki . I go to use the first expression.