Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sridhar_sigired
Creator
Creator

SET ANALYSIS question

Hello,

By default my chart is showing today's data, whereas if user select any product the historical data of that particular product need to display. Suggestion please.

Thanks

7 Replies
PrashantSangle

Hi,

Check your set analysis,

In your set analysis have you comparing date= today()

Post your set analysis/Expression.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sunny_talwar

You will need to provide some more details before somebody here can help. What is your current expression? Can you share some sample data?

Best,

Sunny

Gysbert_Wassenaar

I suggest you create another chart that shows the historical product data. This chart should get a conditional display expression (on the Layout tab) to show/hide the chart as needed. If the chart should show only when only one product value is selected the conditional expression would be something like =if(GetSelectedCount(Product)=1,1,0)


talk is cheap, supply exceeds demand
tyagishaila
Specialist
Specialist

to solve this issue please provide more information regarding issue.

To get result based on current selection use $ in your expression.

sridhar_sigired
Creator
Creator
Author

Sorry for incomplete information.

I wrote expression like

Sum({$<Date={Today()}>}Sales)

Whereas based on product selection, need to show historical sum of sales for that product. Means except today sales of that product.

Thanks gwassenaar. I will try this way too.

sunny_talwar

May be this:

Sum({<Date = {"$(=If(GetSelectedCount(Product) > 0, '<' & Today(), Today()))"}>} Sales)

mustafaelryah
Creator
Creator

Try this :

Sum({$<Date -= {Today()}>}Sales)