Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone, i need help with this,
i have slicer with diffrent categories like fruit, vegetables and meat,
when i select fruit in slicer it will display all fruit i have in friut column,
my dax looks like:
switch(True()),
selectedvalue(categories)="fruit",Values(fruit))
then i got a error message like:
A table of multiple values was supplied where a single values was expected
yes here is sample pbix :
https://www.dropbox.com/s/8ad4q1j4rk4y5fs/sample.pbix?dl=0
Hi @yellow_old_5
Go to Power Query editor
Select the all column & Unpivot it
Load the Data, Remove created measure.
Create Relationship lick below
Use the slicer to get resulted data
Keep the same spelling for Vegetable in both table
If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos
it is possible to not pivot it and have it as it is? i want to have as measure if possible
Hi @yellow_old_5 ,
You could consider unpivot, which is a better model for creating reports.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
138 | |
107 | |
104 | |
82 | |
63 |