Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sanp96
Contributor III
Contributor III

Selecting certain values for a calculated dimension for Pivot table

Hey everyone,

I am working on a Pivot table which has to be built based on an already created table chart. 

The table looks something like this:

Store NumberStore nameAccount numberAccount typeAmount
1ABC1234L73
1ABC2536M932
1ABC6666L46
2PQR8726O15
2PQR1234L126
3XYZ2536M87
3XYZ9287P36
3XYZ6666L98

 

I do not want all the account types in the pivot. I am trying to get only account types 'L','M', and 'O' into the Pivot and calculate the % of total by diving the amount with the sum of all amount for that particular account number, and displaying only the topmost value for that account number, which would look something like this:

Store numberstore nameaccount numberaccount typeamount% of total
2PQR1234L12663.31%
3XYZ6666L9868.05%
1ABC2356M93291.46%
2PQR8726O15100%

 

This would have been a very simple  SQL query had I been working on that, but I am new to Qlik and this seems more complicated.

I read a couple of responses in other forums which suggest creating a variable but I am not sure how would that help me because I am kind of like grouping it by the account number. 

Any help or suggestions is highly appreciated.

Thank you!

1 Reply
Andre_Sostizzo
Digital Support
Digital Support

Looks like this is a duplicate post from the one below. Please continue to use the one accessible via the link below:

https://community.qlik.com/t5/New-to-Qlik-Sense/Selecting-few-values-and-creating-calculated-dimensi...

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up! 🙂