I have a column called [DataID] that references a table called โDataโ. I have the label of data set to a column called [String] which has duplicate values in multiple rows, but mean different things. How can I filter the key values showing labels to be unqiue? I only want to display unique values from that column, but other rows have the same [String] value. So instead of that ref column showing five โ1โ values, Iโd like it to only show one. How can I do this?
Solved! Go to Solution.
Try:
FILTER(
"Data",
ISBLANK(
FILTER(
"Data",
AND(
([_ROWNUMBER] < [_THISROW-1].[_ROWNUMBER]),
([String] = [_THISROW-1].[String])
)
)
)
)
See also:
Where would you like this list displayed? In a dropdown? In a table view?
It displays in a dropdown. What Iโm looking for is an expression.
When the user makes a selection from the dropdown, what value will you want saved in the column? The Ref value, or the label value?
I want to limit the key values represented by the label to be filtered by the label so that Ids will be shown in the dropdown only for unique label values. Will what you suggested accomplish this?
What value will you want stored?
The Key is fine. I have it setup so that when a key is selected, the string field is populated. The only issue is how many key values are visible with duplicate string values.
When there are multiple keys with the same string value which key do you want saved?
Preferably the First key with a given string value.
Try:
FILTER(
"Data",
ISBLANK(
FILTER(
"Data",
AND(
([_ROWNUMBER] < [_THISROW-1].[_ROWNUMBER]),
([String] = [_THISROW-1].[String])
)
)
)
)
See also:
Dear steve,
I have the same case and will save the Ref Value, is it the same expression?
UNIQUE(Data[String])
will give a list of distinct values in the String column of the Data table, as will SELECT(Data[String], TRUE, TRUE)
(note two TRUE values there). The SELECT() approach could also be used to further filter the possible values.
See also:
That worked perfectly! Thank you so much Steve!
User | Count |
---|---|
19 | |
10 | |
7 | |
5 | |
5 |