Forum Discussion
Filter selection with "Select All"
- 5 years ago
Hi Anonymous ,
"Select all" in filter pane and slicer doesnt have any filtering function,it just shows a result of all the selections selected.
I have a workaround for you:
Create a table as below:
Slicer table = UNION(VALUES('Table'[column1]),ROW("column1","Select all"))Then create a measure as below:
Measure = IF(ISFILTERED('Slicer table'[column1]), IF(SELECTEDVALUE('Slicer table'[column1])="Select all", CALCULATE(MAX('Table'[column1]),'Table'[column1] in VALUES('Table'[column1])), CALCULATE(MAX('Table'[column1]),'Table'[column1] in FILTERS('Slicer table'[column1]))))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Anonymous , In Power BI: select all / Nothing selected is same.
you can isfiltered to check if values is filtered or not
All measures should be like this
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
if(isfiltered(Table[Paratemeter]), [Measure], blank())
- Anonymous5 years agoNot applicable
amitchandak Thanks Amit, I already have this measure in place like
Message = if(isfiltered(table[column]),"", "select a value")
Make Transparent = if(isfiltered(table[column]), "#FFFFFF00","White")
These measures are working as intended.
But my question is I need the user to see a blank table when he logs into the report and then click on "select all" from filter to see all rows or select indiviual item in the filter to view that particular item.
- v-kelly-msft5 years ago
Community Support
Hi Anonymous ,
"Select all" in filter pane and slicer doesnt have any filtering function,it just shows a result of all the selections selected.
I have a workaround for you:
Create a table as below:
Slicer table = UNION(VALUES('Table'[column1]),ROW("column1","Select all"))Then create a measure as below:
Measure = IF(ISFILTERED('Slicer table'[column1]), IF(SELECTEDVALUE('Slicer table'[column1])="Select all", CALCULATE(MAX('Table'[column1]),'Table'[column1] in VALUES('Table'[column1])), CALCULATE(MAX('Table'[column1]),'Table'[column1] in FILTERS('Slicer table'[column1]))))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!