Hi Team,
I would like to ask for your assistance on how to filter out the results if the column contains the word "Fallback" in matrix table.
see below
@amitchandak @ImkeF @Tahreem24
IntentName is the column and CountAllIntent is a measure.
Thank you.
Solved! Go to Solution.
Hi @gilbertendaya ,
According to my understand , you want to remove the rows when the values of Intent Name contains “Fallback”,right?
You could use the CONTAINSSTRING() function like this:
countAll=
IF (
CONTAINSSTRING ( SELECTEDVALUE ( Table1[IntentName] ), "Fallback" ),
BLANK (),
SUM ( Table1[Value] )
)
My visualization looks like this:
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.
Best Regards,
Eyelyn Qin
Hi @gilbertendaya ,
According to my understand , you want to remove the rows when the values of Intent Name contains “Fallback”,right?
You could use the CONTAINSSTRING() function like this:
countAll=
IF (
CONTAINSSTRING ( SELECTEDVALUE ( Table1[IntentName] ), "Fallback" ),
BLANK (),
SUM ( Table1[Value] )
)
My visualization looks like this:
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.
Best Regards,
Eyelyn Qin
You can also try using CONTAINS dax:
@gilbertendaya , Try a measure like
Measure =
countx(countrows(Table), filter(Table,search("Fallback",Table[IntentName],,0)>0))
or add filter to your existing measures
Proud to be a Super User!
@gilbertendaya So maybe:
Measure =
VAR __Calc = [CountAllIntent]
RETURN
IF(SEARCH("Fallback",MAX([IntentName),,0)>0,BLANK(),__Calc)
Proud to be a Super User!
User | Count |
---|---|
357 | |
124 | |
88 | |
85 | |
56 |
User | Count |
---|---|
402 | |
209 | |
127 | |
116 | |
112 |