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

Announcements
Qlik Unveils New Agentic Capabilities Across Analytics, Data Engineering, and Trust: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
absekrafi
Creator III
Creator III

set analysis Expression

Dear community members,

I added the expression : =Sum(if('$(vStartDate)' <= '$(vEndDate)', {<TRANSACTION_DATE= {'$(vStartDate)'}>}STOCK_CONS, 0))

in a pivot table expressions, but I'm getting "-" meaning that the data is missing but I'm sure there's data.

Is there any error in the expression above?

Thank you in advance,

Abdallah

Labels (1)
3 Solutions

Accepted Solutions
sunny_talwar

Try this

=Sum({<TRANSACTION_DATE = {'$(vStartDate)'}>} If('$(vStartDate)' <= '$(vEndDate)', STOCK_CONS, 0))

View solution in original post

absekrafi
Creator III
Creator III
Author

Thank you Sunny,

It's working.

Best regards,

Abdallah

View solution in original post

sunny_talwar

Awesome

Please close the thread by marking the correct response above.

Thanks,

Sunny

View solution in original post

4 Replies
sunny_talwar

Try this

=Sum({<TRANSACTION_DATE = {'$(vStartDate)'}>} If('$(vStartDate)' <= '$(vEndDate)', STOCK_CONS, 0))

absekrafi
Creator III
Creator III
Author

Thank you Sunny,

It's working.

Best regards,

Abdallah

sunny_talwar

Awesome

Please close the thread by marking the correct response above.

Thanks,

Sunny

absekrafi
Creator III
Creator III
Author

Some how the "marking the correct answer" is not working right now.

I will check that later