Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
FrankC
Creator
Creator

Repeating Dimension Values

Hello

 

I would like to suppress a dimension value if the value above is the same value.  I want to do this in a straight table.

 

Thanks

Frank

Labels (2)
1 Solution

Accepted Solutions
Benoit_C
Support
Support

Hello,

With Qlik Sense you might be able to do it by using set analysis.

You could try the below:

  1. Create a new calculated field that checks if the current dimension value is the same as the previous dimension value:

if(Peek(FieldName) = FieldName, 0, 1) as Display

  1. Use this calculated field as a dimension in your straight table:

Dimension: Display

  1. In the expression for the column in your straight table, use set analysis to only display values where Display is 1:

Sum({<Display = {1}>} [Measure Field])

This should suppress repeating dimension values in your straight table, only displaying unique values. You can adjust the logic in the calculated field as needed based on your data and requirements.

View solution in original post

1 Reply
Benoit_C
Support
Support

Hello,

With Qlik Sense you might be able to do it by using set analysis.

You could try the below:

  1. Create a new calculated field that checks if the current dimension value is the same as the previous dimension value:

if(Peek(FieldName) = FieldName, 0, 1) as Display

  1. Use this calculated field as a dimension in your straight table:

Dimension: Display

  1. In the expression for the column in your straight table, use set analysis to only display values where Display is 1:

Sum({<Display = {1}>} [Measure Field])

This should suppress repeating dimension values in your straight table, only displaying unique values. You can adjust the logic in the calculated field as needed based on your data and requirements.