We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi Experts, could you please help in finding the solution for my requirement
I have 2 tables with 40K rows in each table,
I have slicer with package column from Table A and i have a table visual from Table B,
no relationship between Table A and Table B due to no common key value, but TableA[package] is a substring of TableB[Command]
my requirement is, when i filter TableA[package] using slicer, the related data should filter in tableB.
how can i solve this?
I tried Calculated table using CONTAINSSTRING Function
I tried Search function and LOOKUPVALUE function
nothing worked out for me.
here is data looks like
Table A:
| Package |
| getHelp |
| getSales |
migarteData |
Table B: (may contain duplicates in command column)
| Service | Command |
| Service1 | C:\file\source\getHelp\folder\aaa |
| Service2 | \\filegroup\folder\getSales\ |
| Service3 | service.ex migrateddata from 2 |
| Service4 | D:\file\source\getHelp\folder\aaa |
Expected Output
| Service | Command | Package |
| Service1 | C:\file\source\getHelp\folder\aaa | getHelp |
| Service2 | \\filegroup\folder\getSales\ | getSales |
| Service3 | service.ex migratedata from 2 | migratedata |
| Service4 | D:\file\source\getHelp\folder\aaa | getHelp |
Solved! Go to Solution.
@smoka3 , Create a new column in TableB
maxx(filter(TableA, CONTAINSSTRING(TableB[Command], TableA[Package])),TableA[Package])
I've just used this for a similar solution, and it's worked perfect! Thank you!
Thanks You!
@smoka3 - So basically this is a Complex Selector - https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534.
Kind of.
In your case, something like this:
Measure =
VAR __Command = MAX('Table B'[Command])
VAR __Table = ADDCOLUMNS(ALL('Table A'),"Include",FIND([Package],__Command,,0))
RETURN
MAXX(FILTER(__Table,[Include]>0),[Package])
Package... LOL...
Thank you!
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.
| User | Count |
|---|---|
| 57 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 38 | |
| 34 | |
| 23 |