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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Opposite of transpose

Hi there

I have a table shown below (which I created in a Table Box).

I want to show the same information in qlikview as follows (using a resident LOAD).

Could somebody help me with the transformation?

The reason why I want it like this is to create columns which show the percentage change in Cash amounts from one period to the next and then highlight those that exceed a certain percentage; using a straight table.

9 Replies
sunny_talwar

I would suggest creating a Pivot Table instead of making changes to your script.

Look here: The Generic Load

pooja_sn
Creator
Creator

Add a Chart -> Pivot table.
Select 2 dimesions - 1. Emp_No

                                  2. Add a calculated dimension = 'P' &Period

Use after/before while calculating expression value accordingly to add comparisons.

Dimensions can be dragged and placed horizontally.

Not applicable
Author

Ok, I've created the pivot but I've never used the before/after functions.  What do I do next from here to get the % change between periods.

Not applicable
Author

ok, please ignore the above, I managed to get it.  Now I want to only show percentages > 50% in the pivot table.   How do I do this?

Below is just a screenshot of what I have so far.

pooja_sn
Creator
Creator

Use below expression:

(sum(E_CashComp) - Before(sum(E_CashComp)))/Before(sum(E_CashComp))

To display the calculated values in percentage - Goto Properties -> Number tab -> Select expression and check 'Show in Percentage %'

sunny_talwar

Would you be able to share a sample of what you are seeing and what you intend to see?

Not applicable
Author

The pivot table currently shows results for ALL employees, see below:

But I only what to see just the employees where the values exceed 50% such as employee number 00012048 where the increase from August to September was 67%.

Not applicable
Author

Thanks Pooja

I managed to get this to work but I still cant figure out how to only show records (i.e. employees) where values are 50% and above. At the moment all records show, which I don't need.   See previous post.

Not applicable
Author

Hi Hetal,

I think you can write using if loop like below. And you can omit the values which are null by using the property supress null values.

if(% value >50 , fine,null)

Thanks,
Sreeman.