The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All,
How does one assign values to a slicer where the values read are like 1 or 0 but I want a label such as yes or no for example.
Thanks!
Solved! Go to Solution.
You could do the dimension table as stated above, or add a custom column, if [field] = 1, "yes" , "no"
HI @Anonymous
Have you tried changing the data type in Power Query Editor? If the whole column is 0 and 1, then changing the type to True/False puts the words into your data.
I don't know of a way to assign a label to a value of a slicer, the data itself has to say what you want to display.
regards,
Neville
Thanks but I have another control where I number values that I need to change to text so this solution will not work.
Many Thanks1
You could do the dimension table as stated above, or add a custom column, if [field] = 1, "yes" , "no"
What's your use case? Can you give an example?
You can create a new table with the "Enter Data" button of the home tab and key in the values you want for the slicer and use that table as a dimension that you can use as a slicer after you've created the appropriate relationships.
User | Count |
---|---|
69 | |
69 | |
66 | |
54 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |