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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
evansabres
Specialist
Specialist

Multiple Values, same date

I have a field, [Game Date] for which there is the potential to have several data points associated to one particular [Game Date].

Example,

[Game Date] = 10/5/2017

totalsale = $171

qtysold = 2

however, there is also

[Game Date] = 10/5/2017

totalsale = $126

qtysold = 2

How do I show both instances of this [Game Date] as there are two separate transactions.

I am showing this in a table and used the expression: =FirstSortedValue(DISTINCT TOTALSALE, -[Game Date]), which only returns the first value. I am looking to return both (or however many there are) values

1 Solution

Accepted Solutions
qliksus
Specialist II
Specialist II

Why don't you use a straight table with TOTALSALE as dimension and expression  and hide the expression field

View solution in original post

10 Replies
Anonymous
Not applicable

Hello,

Try to use TOTALSALE and qtysold as dimension on your table, and Game Date as expression, like this:


=[Game Date]

evansabres
Specialist
Specialist
Author

This did not function correctly for me

Anonymous
Not applicable

With this data ...

Data:

Load * Inline

[Game Date, TOTALSALE, qtysold

10/5/2017, 171,      2

10/5/2017, 126,      2

10/5/2017, 126,      3

];

... and a table configured like I said, it gives me this result:

Capturar.PNG

Isn't it what you trying to achieve?

evansabres
Specialist
Specialist
Author

That is what I am attempting to achieve. However, when make my dimension of Game Date an expression and totalsale and qty the dimensions, the results are not as expected. There should be 39 results, and there are only a dozen or so.

Anonymous
Not applicable

Ok!

Try to add another field to your table in script, in this case the row number:

Data:

Load *,

          RowNo() As RowNumber

Inline

[Game Date, TOTALSALE, qtysold

10/5/2017, 171,      2

10/5/2017, 126,      2

10/5/2017, 126,      3

13/5/2017, 126,      3

13/5/2017, 126,      3

];

And build your table like this:

Dimension: RowNumber

Expressions:

=[Game Date]

=TOTALSALE

=qtysold


On "presentation" tab, check "hide column" for the "RowNumber" Column.


Result:


Capturar 2.PNG

MarcoWedel

If you want to show those three fields as is, you might just use a table box instead.

evansabres
Specialist
Specialist
Author

Is it possible to do expressions in a table box? In the straight table that I was trying to create, I had expressions that were more than just the field name. Is this possible in a table box?

MarcoWedel

No, table boxes don't have the option to create expressions.

qliksus
Specialist II
Specialist II

Why don't you use a straight table with TOTALSALE as dimension and expression  and hide the expression field