Forum Discussion
Slicer default option
LivioLanzoDear Livio,
thank you for answering, but I'm afraid I didn't understand what should I do exactly?
So what do you mean by slicer[header]??
And should I write this as a measure and then add in as my Slicer field?
Thank you for your help
Hi Anonymous,
For your error, I need to know more about your data sample.
If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)
In addition, do you want to set the default slicer value? If it is, you could refer to this blog.
Best Regards,
Cherry
- Anonymous7 years agoNot applicable
I am using AdventureWorksDW data samples.
You can find the report in the attachment.
I thank you in advance for your help- v-piga-msft7 years ago
Resident Rockstar
Hi Anonymous,
Based on your sample, I found that the issue is caused by the measure Final Selection your created.
If you use values function it will return mutiple values which will cause this error.
Please modify your measure like below to have a try.
Final Selection = SWITCH(TRUE(), SELECTEDVALUE(Selection[Option])= "Sales", [Total Internet Sale], SELECTEDVALUE(Selection[Option])= "Profits", [Total Internet Profit], 0)Best Regards,
Cherry
- Anonymous7 years agoNot applicable
v-piga-msft
Thank you so much. I can't believe this could have been solved so easily !!!:smileyindifferent:
This is exactly the equivalent for the :Option Select = IF ( HASONEVALUE ( Selection[Option] ), VALUES ( Selection[Option] ), MAX ( InternetSales[SalesAmount] ) )Thank you for your clever answer