Forum Discussion
Issue with Dax
Hi mvelazquez ,
Sorry for that measures are not supported to be used by slicer. But we can use the following steps to meet your requirement.
1. Use Enter data to create a table that contains 0 and 1.
Then use value field as a slicer.
2. Then we can create a measure and add the measure on the visual filter. Configure the measure “is 1”.
Visual Control = if([Alert] in Distinct(SlicerTable[Value]), 1, -1)3. At last we create a slicer using [value], and we can get the result like this,
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- amitchandakSuper User
Can you share sample data and sample output.
- mvelazquezFrequent Visitor
- v-zhenbw-msftCommunity Support
Hi mvelazquez ,
Sorry for that measures are not supported to be used by slicer. But we can use the following steps to meet your requirement.
1. Use Enter data to create a table that contains 0 and 1.
Then use value field as a slicer.
2. Then we can create a measure and add the measure on the visual filter. Configure the measure “is 1”.
Visual Control = if([Alert] in Distinct(SlicerTable[Value]), 1, -1)3. At last we create a slicer using [value], and we can get the result like this,
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.