LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter repeated values on array 2D

Solved!
Go to solution

Hello,

 

I am trying to create a filter to display the goals of my department, where each column corresponds to the month of the year and the status of each goal.

 

leandrofeder_0-1749067327795.png

 

I need to filter all the repeated data from the left and display it as in the array on the right, with the 12 columns, even if the item in the array is empty, I need to point that out.Can you help me with this?

0 Kudos
Message 1 of 5
(184 Views)

The filtering rules are not obvious from your description, for example there is nothing that resembles a "month" and there are fewer that 12 columns

 

Please explain the filtering rules in a few more sentences and what result you expect from the current array diagram constant.

 

(also note that it was nice to do a "save for previous", but the concatenating string tunnel did not exist in earlier version and the code is broken. Easy to fix, see below)

 

altenbach_0-1749070178860.png

 

Part of the program looks like a mutilated version of my code. Where did you find it? You should also replace the variant attributes stuff with a map, of course.

0 Kudos
Message 2 of 5
(173 Views)

Here's a start that CA can fix. 🙂

 

snip.png

Message 3 of 5
(168 Views)

Not entirely sure if this is what you want, I made some assumptions but it looks sort of like your expected result.

I transposed the input to iterate over columns instead of rows and replaced empty strings with the string "Empty". That was mostly it.

It is not exactly the same output as your image shows, but I assume that is because of incomplete data.

Message 4 of 5
(166 Views)
Solution
Accepted by topic author leandrofeder

Taking some guesses, here's what I might do:

 

altenbach_0-1749071288623.png

 

 

It is not obvious what sort order you want in the output columns. they are not sorted by occurrence in your example.

Message 5 of 5
(151 Views)