Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ahmd
Contributor II
Contributor II

Only show selection values

Hi,

I have 3 dimensions (Dim1, Dim2, Date) and Sales.

I want to show the sales only according to Dimension Selection otherwise Sales should be null in the text object.

Scenario 1: If there is no selection then the text object shouldn't show any sales

Scenario 2: If I select Dim 1, Dim 2 then it must show me the latest day sales.

Scenario 3: If I select Dim 1, Dim 2, Date Dimension then it must show me the sales according to selection.

 

Dim 1Dim 2Date Sales
AA112.01.2021101
AA211.01.2021102
BB112.01.2021201
BB211.01.2021202
BB310.01.2021203
CC112.01.2021301
CC211.01.2021302
CC310.01.2021303
CC409.01.2021304
CC508.01.2021305

 

1 Reply
MayilVahanan

HI @ahmd 

Try like below

=If(GetSelectedCount([Dim 1])+GetselectedCount([Dim 2]) >=1, Sum({<Date={"$(=Date(Max(Date),'DD.MM.YYYY'))"}>}Sales), null())

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.