Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Mitch_Data
Contributor III
Contributor III

Generating one line per duplicate value.

Hi,

 

Question:

I have a straight table with a lot of values. All the rows are equal except for my dimension "Total Loss"

Total Loss, can either equal Yes, or No. For about 20 values Qlik then creates two lines because they appear multiple times in the dataset, one with Total Loss = Yes, one with Total Loss = No, as it sees them as a seperate entity.

What do I want?

If Total Loss = Yes then I want to only show the Yes value and don't show the No Value. However, the values that have only one line with No or Yes must be showed too.

 

One dimension that can also be used in the expression is "License Plate" this is also unique.

 

Thanks in advance.

 

 

Labels (6)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think if you define the Dimension as a calculated Dim:

=MaxString(Total <[License Plate]> [Total Loss])

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think if you define the Dimension as a calculated Dim:

=MaxString(Total <[License Plate]> [Total Loss])

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

Mitch_Data
Contributor III
Contributor III
Author

Hi Rob,

 

Thanks for the suggestion, by using the opposite =MinString I got the result that I wanted.
I appreciate your feedback, thank you!

 

Regards,

 

Mitchell