Forum Discussion
Anonymous
6 years agoNot applicable
Direct Query SQL: Load data if slicer has one selection
Hello everyone, I have a table which should only show data from a Direct Query SQL table when a slicer with the column "UserId" contains one selection. After researching, there was no solution t...
v-frfei-msft
Community Support
6 years agoHi Anonymous ,
We can create a measure as below and make the visual filtered by it like that to work around.
Me = var als =CALCULATE(DISTINCTCOUNT('Product'[Category]),ALLSELECTED('Product'))
var al = CALCULATE(DISTINCTCOUNT('Product'[Category]),ALL('Product'))
return
IF(al=als,BLANK(),1)
- Anonymous6 years agoNot applicable
Hello v-frfei-msft ,
I have to avoid using measures because with them, my visuals won't load fast anymore. Also, while this causes the visual not to show anything, data will still be loaded in the background, which makes other queries to the database slow.