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: 
dmohanty
Partner - Specialist
Partner - Specialist

Records constant in a Straight Table irrspective of selection?


Hi All,,

I have a small requirement.

Let say I have a table with fields ID (A,B,C,D,E) Date and Sales.

I should compare the the Sales of ID (B,C,D,E) for each date with same date and ID = A.

So in my Straight Table, ID filed with A values will remain constant despite of selection of other ID values from a List Box (ID should be selected from a List Box). Chart should look like this:

ID= AOther IDsDatesSales of ASales of B
ABxxxxxxxxxxxx
ABxxxxxxxxxxxx
ACxxxxxxxxxxxx
ACxxxxxxxxxxxx
ADxxxxxxxxxxxx
AExxxxxxxxxxxx

Could someone please help me doing this on Chart Level, not in script level?

Regards!!

9 Replies
Not applicable

Hi DMohanty,

This isn't an answer but the following links could prove useful.

Customizable Straight Table

Conditional Dimensions and Expressions – Tips and Tricks

Good luck with this!

dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi All,

Any suggestions on above request please?

jsingh71
Partner - Specialist
Partner - Specialist

Can your share Some Sample Data.

--Jai

dmohanty
Partner - Specialist
Partner - Specialist
Author

Hi Jai,

This can be an example below:

IDDatesSales
A24/04/2014100
A25/04/2014160
B25/04/2014130
C24/04/2014140
D25/04/2014180
E24/04/201480
E25/04/2014110
Not applicable

Hi,

I think it is not possible.

A suggestion from my side

Create a CyclicGroup and add the below 2 expressions in it

=IF(Match(ID,'A')>0,ID)

 

=IF(Match(ID,'B','C','D','E')>0,ID)

Add this group as  dimension in your chart and check on suppressnull

Not applicable

Hi

please try this

attached file

Thanks

Michael

sunilkumarqv
Specialist II
Specialist II

you can change Dimension into calculated Dimension =if(ID='A',ID) instead of ID

or

use of  alternate state

let me know any clarification

dmohanty
Partner - Specialist
Partner - Specialist
Author


Hi SUnil,

In this case, if I select any ID from the List Box apart from 'A', this calculated dimension becomes NULL.

Suppose if I select 'B', then the first field should show 'A' (no change) and the 2nd column should show only 'B'

Hope I am clear

Not applicable

Hi

With Dates & ID as your dimension, put the following formula into the expression box (this is to have the answer in one column):

Sum({<ID = {'A'}>}Sales)

+

Sum({<ID -= {'A'}>}Sales)

If you want it in two columns (as in your example),

Expression 1:

Sum({<ID = {'A'}>}Sales)

Expression 2:

Sum({<ID -= {'A'}>}Sales)

Hope that helps!

Byron