Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

group in a table

How to a group like in the excel in a table in qlikview ?

Sans titre.png

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Hi,

Hope you aware, if you have header data in the dimension, you can just drag and drop to the top.

If you don't have, you need to do with Calculated Dimension with Valuelist(Pick(Match(...)))

find attached pivot table with existing dimension.

View solution in original post

9 Replies
gautik92
Specialist III
Specialist III

use Pivot table it is better for grouping

Anonymous
Not applicable
Author

yes I use it , but how to group expressions ? there expression for 2014 then expressions for budget 2015?

Anonymous
Not applicable
Author

Hi Jaweher89,

I have occasionally succeeded in dragging the dimension rows to the top, to make them columns, and the expression-columns to the left, which makes them rows.

tripatirao
Creator II
Creator II

Hi

You can use straight table . Go to  expression tab, Add two expression  you can find Group and Ungroup option.

click on Group option then both expression will be grouped.



Regards

Tripati

ChiragPradhan
Creator II
Creator II

Hi Jaweher89,,

In Excel, that is just a header or a label. In qlikview, you would need to have it as a dimension. You can then use a condition in your expression to calculate a value based on your dimension values. something like this

1.png

hope that helps.

Chirag.

Anonymous
Not applicable
Author

can you please add the QVW as attachement ?

ChiragPradhan
Creator II
Creator II

Hi jaweher89

Please find attached.

regards

Chirag.

settu_periasamy
Master III
Master III

Hi,

Hope you aware, if you have header data in the dimension, you can just drag and drop to the top.

If you don't have, you need to do with Calculated Dimension with Valuelist(Pick(Match(...)))

find attached pivot table with existing dimension.

Anonymous
Not applicable
Author

Hi,

Try:

The ValueList () function returns a set of listed values which, when used in a calculated dimension, will form a synthetic dimension. In charts with a synthetic dimension created with the valuelist function it is possible to reference the dimension value corresponding to a specific expression cell by restating the valuelist function with the same parameters in the chart expression.

Below is example where metrics Actual, Budget and Forecast are grouped by current month, Current Year, Previous Year

The Calculated dimension(Pivot this dimension)definition is as follows:

=valuelist('Period','CurrentYear',’PreviousYear’)

Three expressions:

if(valuelist('Period','CurrentYear',’PreviousYear’) = 'Period', Sum({<Year = {'$(=Max(Year))'},Month = {'$(=Max(Month))'} >}Actual),

if(valuelist('Period','CurrentYear',’PreviousYear’) = 'CurrentYear', Sum({<Year = {'$(=Max(Year))'} >}Actual),

if(valuelist('Period','CurrentYear',’PreviousYear’) = ’PreviousYear’, Sum({<Year = {'$(=Max(Year)-1)'} >}Actual)) ) )

if(valuelist('Period','CurrentYear',’PreviousYear’) = 'Period', Sum({<Year = {'$(=Max(Year))'},Month = {'$(=Max(Month))'} >}Budget),

if(valuelist('Period','CurrentYear',’PreviousYear’) = 'CurrentYear', Sum({<Year = {'$(=Max(Year))'} >}Budget),

if(valuelist('Period','CurrentYear',’PreviousYear’) = ’PreviousYear’, Sum({<Year = {'$(=Max(Year)-1)'} >}Budget)) ) )

if(valuelist('Period','CurrentYear',’PreviousYear’) = 'Period', Sum({<Year = {'$(=Max(Year))'},Month = {'$(=Max(Month))'} >}Forecast),

if(valuelist('Period','CurrentYear',’PreviousYear’) = 'CurrentYear', Sum({<Year = {'$(=Max(Year))'} >}Forecast),

if(valuelist('Period','CurrentYear',’PreviousYear’) = ’PreviousYear’, Sum({<Year = {'$(=Max(Year)-1)'} >}Forecast)) ) )

Regards

Neetha