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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selecting from straight table

Hi!

I am using a straight table and there are 7 dimensions.

let's say the table has column name as project Name

and its values are project 1, project 2 ,....project 7..

I want to have one straight table that only shows project 1,2,3,4

and another straight table that shows 5,6,7

dimension limit won't work because the expression result for each project is not ordered high to low or low to high from project 1 to project 7...

is there any way to seperate this out???

Thank you!

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Maybe there's a little confusion as a result of me not noticing that your field was already called Group. In that case, I'm suggesting a new field, [Group Group]. Table size is a non-issue. Even if you add a derived field to your main table, QlikView will compress your data fairly efficiently. But I also see no problem with:

[Group Groups]:
LOAD * INLINE [
Group Group,Group
Core,Alpha
Core,Beta
Core,Gamma
Sub,delta
Sub,epsilon
Sub,zeta
Sub,NULL
];

As for "show a breakdown of each group", that's exactly what what I suggested would do, modified to use [Group Group].

Dimension 1 = Group Group
Dimension 2 = Group
Expression  = count([UniqueID])

Do indent mode with a pivot table, and it'll look a whole lot like what you said you wanted to see. If you really need two charts.

Dimension  = Group
Expression = count({<[Group Group]={'Core'}>} [UniqueID])

And the same for the second chart but with 'Sub'. Or you could handle it with the dimension, I think like this (suppressing nulls for the dimension):

Dimension  = if([Group Group]='Core',[Group])
Expression = count([Unique ID])

View solution in original post

11 Replies
johnw
Champion III
Champion III

Maybe this? Calculated dimension in each chart. I believe this assumes your projects are loaded in the order you want to see them. We could probably do something similar with firstsortedvalue() for alphabetical maybe. Not sure what order you want them in in the real world. If I was designing for your specific case, I'd just strip off the last character as my sequence, but I assume that's not what your actual data looks like.

=if(fieldindex('Project Name',[Project Name])<=4,[Project Name])

=if(fieldindex('Project Name',[Project Name])> 4,[Project Name])

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi David,

You can filter your desired projects using Set Analysis. Depending on your needs, you can use either a simple selection of values or an advanced search. If your choice of projects for the 2 straight tables is fixed (always projects 1, 2, 3, 4 in the first table and always 5, 6, 7, 8 in the second table, then you can simply formulate your set analysis with these fixed values.

Otherwise, you can use Advanced Search filter and rank your projects based on a certain metric and then filter your projects based on their Rank - one table always includes ranks 1-4, then ranks 5-8, etc...

cheers,

Oleg Troyansky

Learn Set Analysis and other Qlik Techniques from my new book QlikView Your Business

Ask me about Qlik Sense Expert Class!
Anil_Babu_Samineni

Just Take Those Only like below using the Calc Dimension

Straight Table1:

If(WildMatch([Project Name],'Project 1','Project 2','Project 3', 'Project 4'),[Project Name])

Same as another table

Straight Table2:

If(WildMatch([Project Name],'Project 5','Project 6','Project 3'),[Project Name])


Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hi Guys! I think it will be so much better If I can provide you an example.

Let's say Alpha, Beta, Gamma belongs to CoreGroup

and delta, eplison, zeta, NULL belongs to SubGroup.


what I basically want to do is provide a breakdown of counts of each group. I want something that looks like this from the table.

  

CoreGroupcount(UniqueID)
Alpha7
Beta8
Gamma9
SubGroup
delta9
epsilon14
zeta17
NULL11

 

GroupUniqueID
Alphaa00
Betaa01
Gammaa02
deltaa03
epsilona04
zetaa05
Alphaa06
Betaa07
Gammaa08
deltaa09
epsilona10
zetaa11
Alphaa12
Betaa13
Gammaa14
deltaa15
epsilona16
zetaa17
Betaa18
Gammaa19
deltaa20
epsilona21
zetaa22
Alphaa23
Betaa24
Gammaa25
deltaa26
epsilona27
zetaa28
epsilona29
zetaa30
Alphaa31
Betaa32
Gammaa33
deltaa34
epsilona35
zetaa36
zetaa37
epsilona38
zetaa39
Betaa40
Gammaa41
deltaa42
epsilona43
zetaa44
epsilona45
zetaa46
Betaa47
zetaa48
Alphaa49
Betaa50
Gammaa51
deltaa52
epsilona53
zetaa54
zetaa55
epsilona56
zetaa57
Betaa58
Gammaa59
deltaa60
epsilona61
epsilona62
zetaa63
Betaa64
zetaa65
Alphaa66
Betaa67
a68
a69
a70
a71
a72
a73
a74
a75
a76
a77
a78

Please Help!!

Thank you!!

Not applicable
Author

stalwar1

Can you help me Sunny ?       if you have time?

johnw
Champion III
Champion III

I'd add a [Group] field with values 'Core' and 'Sub', and create a pivot table with that as the first dimension. I wouldn't be trying to make two different charts. But if you want two different charts (some users are very insistent that things look just so), now you have a dimension you can use in set analysis to do so.

Not applicable
Author

yeah... I wish I could just add a field but the actual data table is a large table and I am requested to show a breakdown of each group... that's why I am struggling..

could you give me a little more lead on how I can use set analysis to do this??

I appreciate your advice!!!

johnw
Champion III
Champion III

Maybe there's a little confusion as a result of me not noticing that your field was already called Group. In that case, I'm suggesting a new field, [Group Group]. Table size is a non-issue. Even if you add a derived field to your main table, QlikView will compress your data fairly efficiently. But I also see no problem with:

[Group Groups]:
LOAD * INLINE [
Group Group,Group
Core,Alpha
Core,Beta
Core,Gamma
Sub,delta
Sub,epsilon
Sub,zeta
Sub,NULL
];

As for "show a breakdown of each group", that's exactly what what I suggested would do, modified to use [Group Group].

Dimension 1 = Group Group
Dimension 2 = Group
Expression  = count([UniqueID])

Do indent mode with a pivot table, and it'll look a whole lot like what you said you wanted to see. If you really need two charts.

Dimension  = Group
Expression = count({<[Group Group]={'Core'}>} [UniqueID])

And the same for the second chart but with 'Sub'. Or you could handle it with the dimension, I think like this (suppressing nulls for the dimension):

Dimension  = if([Group Group]='Core',[Group])
Expression = count([Unique ID])

Not applicable
Author

Hi!!

Thank you it worked!!

Captu1234re.PNG

sorry about the crappy screenshot. i just cannot disclose the info here.

but I still have one issue.

as I told you there is a NULL value. I did

Sub, NULL

in the inline but still it doesnt look like the Sub is including the NULL.

is there any way we can handle the NULL better?

Let me know if you have any solution!

Thank you so much!!