Forum Discussion
dokat
Post Prodigy
4 years agoUpdate text field based on slicer selection
Hi,
I have a text field where i'd like it to update based on slicer selection. I have below code where if the slicer selection is "Select all" return "Dairy" however code is not working correctly. It doesnt return error but blank. Appreciate any help modifying code. Thanks
Test Measure =
If(
SELECTEDVALUE('POS'[Category])="Select all",
" Dairy",
BLANK()
)
dokat , Sorry my mistake. Try
Test Measure =
If( not(isfiltered('POS'[Category])),
" Dairy",
BLANK()
)
4 Replies
- amitchandak
Super User
dokat , Try isfiltered
Test Measure = If( not(isfiltered('POS'[Category]))="Select all", " Dairy", BLANK() )- dokat
Post Prodigy
amitchandak Thank you for your response. I tried the code however it return below error. Please see below screenshot.
- amitchandak
Super User
dokat , Sorry my mistake. Try
Test Measure =
If( not(isfiltered('POS'[Category])),
" Dairy",
BLANK()
)