Forum Discussion
dokat
4 years agoPost Prodigy
Update 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
- amitchandakSuper User
dokat , Try isfiltered
Test Measure = If( not(isfiltered('POS'[Category]))="Select all", " Dairy", BLANK() )- dokatPost Prodigy
amitchandak Thank you for your response. I tried the code however it return below error. Please see below screenshot.
- amitchandakSuper User
dokat , Sorry my mistake. Try
Test Measure =
If( not(isfiltered('POS'[Category])),
" Dairy",
BLANK()
)