Forum Discussion
Text field to show the selected filter
- 10 years ago
You can try a measure that return text. You need to add it in a table , matrix or card visual.
1. If you have a client column/table with unigue clients you can try this
Clients Filtered = IF ( HASONEVALUE ( Clients[ClientName] ); VALUES ( Clients[ClientName] ); "ALL" )2. If not you, you filter from fact table or other this option should work
Clients Filtered 2 = IF ( COUNTROWS ( VALUES ( Sales[Client] ) ) = 1; VALUES ( Sales[Client] ); "ALL" )Hope that helps
You can try a measure that return text. You need to add it in a table , matrix or card visual.
1. If you have a client column/table with unigue clients you can try this
Clients Filtered =
IF (
HASONEVALUE ( Clients[ClientName] );
VALUES ( Clients[ClientName] );
"ALL"
)2. If not you, you filter from fact table or other this option should work
Clients Filtered 2 =
IF (
COUNTROWS ( VALUES ( Sales[Client] ) ) = 1;
VALUES ( Sales[Client] );
"ALL"
)Hope that helps
hi!
i tried to do what you adviced but it didn't work for me :(
i have a slicer, i want the user to choose one (only one) category from the list and the to show it on text field.
it shows me "all" all the time when i trying your code.
thank you very much for your help!