Forum Discussion
How to show specific value
I would appericate it if someone can help me.
How do I create a DAX formula to only show specific value.
For example, I would like to create a Dax formula to only show branch 19, 22, 27 and exclude the rest of the branch. I do not want to use the exclude using the filter.
8 Replies
- noble10Frequent Visitor
Hi VahidDM,
Thank you so much for your help! I unfortunately was not able to select the measure as a slicer. Not sure why?
- VahidDMSuper User
Hi noble10
Try to add a column with this code to your table:
IF you want to have Branch No. in your slicer:
Filtered Branch = if('Table'[Branch] in{19,22,21},'Table'[Branch])
If you want to have a Location Name in your slicer:
Filtered Branch = if('Table'[Branch] in{19,22,21},'Table'[Location Name])
Then add Filtered Branch column to your slicer.
Did I answer your question? Mark my post as a solution!
Appreciate your Kudos !!
- noble10Frequent Visitor
- wdx223_DanielCommunity Champion
you can add a IF function in your measures, such as
IF(SELECTEDVALUE(table[Branch]) IN {19,22,27},[old measure])
- noble10Frequent Visitor
I tried that and it doesn't seem to work either.
I was unable to generate a slicer after creating the measure.