Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi everyone
Here is my problem. I have a table (LDM LIVE) with a summary,labels and description columns with a slicer (Part number) from another table (EPICOR LIVE). I need to find if the slicer value is found in the table summary.
If just one selected value in the slicer is one I have no problems. I use the following dax measure and then filter with those who have a value of 1
Solved! Go to Solution.
Hi @Anonymous
Please try
IsContained =
IF (
NOT ISEMPTY (
FILTER (
'LDM live',
NOT ISEMPTY (
FILTER (
ALLSELECTED ( 'EPICOR LIVE'[Part number] ),
CONTAINSSTRING ( 'LDM live'[Summary], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Description], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Labels], 'EPICOR LIVE'[Part number] )
)
)
)
),
1
)
@Anonymous
Please try
IsContained =
IF (
COUNTROWS ( ALLSELECTED ( 'EPICOR LIVE'[Part number] ) )
<> COUNTROWS ( ALL ( 'EPICOR LIVE'[Part number] ) ),
IF (
NOT ISEMPTY (
FILTER (
'LDM live',
NOT ISEMPTY (
FILTER (
ALLSELECTED ( 'EPICOR LIVE'[Part number] ),
CONTAINSSTRING ( 'LDM live'[Summary], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Description], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Labels], 'EPICOR LIVE'[Part number] )
)
)
)
),
1
)
)
@tamerj1 What if I don't want the table to show anything if nothing is selected in the slicer ?
@Anonymous
Please try
IsContained =
IF (
COUNTROWS ( ALLSELECTED ( 'EPICOR LIVE'[Part number] ) )
<> COUNTROWS ( ALL ( 'EPICOR LIVE'[Part number] ) ),
IF (
NOT ISEMPTY (
FILTER (
'LDM live',
NOT ISEMPTY (
FILTER (
ALLSELECTED ( 'EPICOR LIVE'[Part number] ),
CONTAINSSTRING ( 'LDM live'[Summary], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Description], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Labels], 'EPICOR LIVE'[Part number] )
)
)
)
),
1
)
)
Hi @Anonymous
Please try
IsContained =
IF (
NOT ISEMPTY (
FILTER (
'LDM live',
NOT ISEMPTY (
FILTER (
ALLSELECTED ( 'EPICOR LIVE'[Part number] ),
CONTAINSSTRING ( 'LDM live'[Summary], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Description], 'EPICOR LIVE'[Part number] )
|| CONTAINSSTRING ( 'LDM live'[Labels], 'EPICOR LIVE'[Part number] )
)
)
)
),
1
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 45 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 73 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |