Forum Discussion
ADDING COLUMN VALUES TO SELECTED PARAMETER
Anonymous Hi!
Yes, it is possible to achieve the functionality you described in Power BI. You can use a combination of slicers and calculated columns to add the username to a specific category based on user selection.
Here are the steps you can follow:
-
Create a slicer for the "User Name" column in your table.
-
Create two additional slicers for the "Animal" and "Not Animal" categories.
-
Add a new calculated column to your table using the DAX formula:Category =
IF(
SELECTEDVALUE('Selection'[Animal]) = "Animal",
"Animal",
IF(
SELECTEDVALUE('Selection'[Not Animal]) = "Not Animal",
"Not Animal",
BLANK()
)
) -
Add the new "Category" column to your table visual.
-
When a user selects a username in the "User Name" slicer, they can also select either "Animal" or "Not Animal" from the corresponding slicer to assign the user to the selected category.BBF
- Anonymous3 years agoNot applicable
Thank you BeaBF for your response.
I have tried what you have said above, but i am not getting the desired output. It would be great if you can share sample file.