Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |