<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Match 2 tables while wildcards are involved... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295422#M170491</link>
    <description>&lt;P&gt;Sorry I've forgot the attachment, here thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/14uYY0wZy3BoP-j52fQM32C-g4OoVtlE9/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/14uYY0wZy3BoP-j52fQM32C-g4OoVtlE9/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data contains the data I want to&amp;nbsp; match with&amp;nbsp;Maschera Cliente di Budget (my map):&lt;BR /&gt;&lt;BR /&gt;All the conditions (wildcards included, they are the problem for me) should be true. When it happens, Column Code and columns Utilizzatori should be bring inside table Data. Columns to match are: Cliente, Utilizzatore (be careful about last letter!), Licenziatario, Diritto, Utilizzatore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 14:04:42 GMT</pubDate>
    <dc:creator>takui12</dc:creator>
    <dc:date>2024-11-21T14:04:42Z</dc:date>
    <item>
      <title>Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4293479#M170399</link>
      <description>&lt;P&gt;Hi guys, I have two tables. One of them contains 7 columns, 2 of which need to be added to the other table based on a match with the remaining 5 columns. The complexity arises because some columns don’t have precise values but instead contain "All, Other, -1, -2" (-1 is equivalent to All for numeric columns, and -2 is equivalent to Other). Therefore, I can't simply concatenate and compare them directly.&lt;/P&gt;&lt;P&gt;The 5 columns are "Diritto, Cliente, Utilizzatori, Associazione, Cod_Licenziatario." For example, if there are specific values in 3 columns but the other 2 contain All or -1, then for those two columns, the match is always TRUE. Conversely, if the values are Other or -2, the match is always TRUE except for cases where those specific values have been explicitly declared under the same conditions for the other columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: if I have in my target table: 100, 100, 30, 40, 60 and in this table 100, 100, All, All, 60, means that the condition to verify is just the first 2 columns and the last one. But if I have in the 2nd table 100, 100, 30, 40, 60, then the match is perfect and should be picked from that line.&amp;nbsp; But also, if I have in the 2nd table, 100, 100, 30, -2, Other (for example) and that specific combination of 5 numbers isn't present, than the match should be verify with&amp;nbsp;100, 100, 30, -2, Other ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it's quite complex and so I'm hitting a wall from yesterday....thank you guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 14:18:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4293479#M170399</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-20T14:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4293987#M170419</link>
      <description>&lt;P&gt;Use Table.AddColumn with a custom column generator. There you can implement all kinds&amp;nbsp; of complex fuzzy logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 20:14:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4293987#M170419</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-20T20:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295008#M170466</link>
      <description>&lt;P&gt;Hi, thank you for your reply. I've prepared an excel to import directly to pbi&lt;BR /&gt;&lt;BR /&gt;Maschera Cliente di Budget = the map with those 5 columns to mix&lt;/P&gt;&lt;P&gt;Examples = some example of outputs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;BR /&gt;&lt;BR /&gt;edit: i've tried this code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;// Definire la tabella di mapping (sostituisci questa parte con la tua tabella reale)&lt;BR /&gt;MappingTable = #"Maschera Cliente di Budget", // Inserisci qui la definizione della tua tabella MappingTable&lt;/P&gt;&lt;P&gt;// Definisci la selezione dei campi da utilizzare per il matching&lt;BR /&gt;FieldSelection = [&lt;BR /&gt;Cliente = "Cliente",&lt;BR /&gt;Utilizzatore = "Utilizzatore",&lt;BR /&gt;Diritto = "Diritto",&lt;BR /&gt;Associazione = "Associazione",&lt;BR /&gt;Licenziatario = "Licenziatario"&lt;BR /&gt;],&lt;/P&gt;&lt;P&gt;// Funzione per trovare la corrispondenza in base ai criteri&lt;BR /&gt;MatchRow = (row as record, mappingTable as table, fieldSelection as record) =&amp;gt;&lt;BR /&gt;let&lt;BR /&gt;// Aggiungi debug per vedere i valori del record corrente&lt;BR /&gt;DebugValues = [&lt;BR /&gt;Cliente = Record.Field(row, fieldSelection[Cliente]),&lt;BR /&gt;Utilizzatore = Record.Field(row, fieldSelection[Utilizzatore]),&lt;BR /&gt;Diritto = Record.Field(row, fieldSelection[Diritto]),&lt;BR /&gt;Associazione = Record.Field(row, fieldSelection[Associazione]),&lt;BR /&gt;Licenziatario = Record.Field(row, fieldSelection[Licenziatario])&lt;BR /&gt;],&lt;/P&gt;&lt;P&gt;// Filtra la mappingTable in base ai criteri&lt;BR /&gt;FilteredTable = Table.SelectRows(mappingTable, each&lt;BR /&gt;(&lt;BR /&gt;( Record.Field(_, fieldSelection[Cliente]) = Record.Field(row, fieldSelection[Cliente]) or Record.Field(_, fieldSelection[Cliente]) = "All" or (Record.Field(_, fieldSelection[Cliente]) = "Altro" and not List.Contains(List.RemoveMatchingItems(Table.Column(mappingTable, fieldSelection[Cliente]), {"All", "Altro"}), Record.Field(row, fieldSelection[Cliente])))) and&lt;BR /&gt;( Record.Field(_, fieldSelection[Utilizzatore]) = Record.Field(row, fieldSelection[Utilizzatore]) or Record.Field(_, fieldSelection[Utilizzatore]) = "All" or (Record.Field(_, fieldSelection[Utilizzatore]) = "Altro" and not List.Contains(List.RemoveMatchingItems(Table.Column(mappingTable, fieldSelection[Utilizzatore]), {"All", "Altro"}), Record.Field(row, fieldSelection[Utilizzatore])))) and&lt;BR /&gt;( Record.Field(_, fieldSelection[Diritto]) = Record.Field(row, fieldSelection[Diritto]) or Record.Field(_, fieldSelection[Diritto]) = "All" or (Record.Field(_, fieldSelection[Diritto]) = "Altro" and not List.Contains(List.RemoveMatchingItems(Table.Column(mappingTable, fieldSelection[Diritto]), {"All", "Altro"}), Record.Field(row, fieldSelection[Diritto])))) and&lt;BR /&gt;( Record.Field(_, fieldSelection[Associazione]) = Record.Field(row, fieldSelection[Associazione]) or Record.Field(_, fieldSelection[Associazione]) = "All" or (Record.Field(_, fieldSelection[Associazione]) = "Altro" and not List.Contains(List.RemoveMatchingItems(Table.Column(mappingTable, fieldSelection[Associazione]), {"All", "Altro"}), Record.Field(row, fieldSelection[Associazione])))) and&lt;BR /&gt;( Record.Field(_, fieldSelection[Licenziatario]) = Record.Field(row, fieldSelection[Licenziatario]) or Record.Field(_, fieldSelection[Licenziatario]) = "All" or (Record.Field(_, fieldSelection[Licenziatario]) = "Altro" and not List.Contains(List.RemoveMatchingItems(Table.Column(mappingTable, fieldSelection[Licenziatario]), {"All", "Altro"}), Record.Field(row, fieldSelection[Licenziatario]))))&lt;BR /&gt;)&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;// Controllo del numero di righe risultanti dopo il filtro&lt;BR /&gt;FilteredRowCount = Table.RowCount(FilteredTable),&lt;/P&gt;&lt;P&gt;// Restituisce il primo record trovato, se esiste&lt;BR /&gt;Result = if FilteredRowCount &amp;gt; 0 then&lt;BR /&gt;Record.SelectFields(Table.First(FilteredTable), {"Code", "Utilizzatori"})&lt;BR /&gt;else&lt;BR /&gt;null&lt;BR /&gt;in&lt;BR /&gt;Result,&lt;/P&gt;&lt;P&gt;// Applicazione della funzione sulla tabella "Examples", passando il campo di selezione&lt;BR /&gt;AppliedMatchRow = Table.AddColumn(#"Union_LPF_CR_INV", "MatchResult", each MatchRow(_, MappingTable, FieldSelection)),&lt;BR /&gt;#"Tabella MatchResult espansa" = Table.ExpandRecordColumn(AppliedMatchRow, "MatchResult", {"Code", "Utilizzatori"}, {"MatchResult.Code", "MatchResult.Utilizzatori"})&lt;BR /&gt;in&lt;BR /&gt;#"Tabella MatchResult espansa"&lt;BR /&gt;&lt;BR /&gt;it worked with a small table with few lines but when applied to the real one (200 thousands lines) it went in loop? Load of the map table...it grew from few mb to 3,5 gb then I've stopped it...something isnt working well...&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 12:20:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295008#M170466</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-21T12:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295367#M170488</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 13:18:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295367#M170488</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-21T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295422#M170491</link>
      <description>&lt;P&gt;Sorry I've forgot the attachment, here thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/14uYY0wZy3BoP-j52fQM32C-g4OoVtlE9/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/14uYY0wZy3BoP-j52fQM32C-g4OoVtlE9/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data contains the data I want to&amp;nbsp; match with&amp;nbsp;Maschera Cliente di Budget (my map):&lt;BR /&gt;&lt;BR /&gt;All the conditions (wildcards included, they are the problem for me) should be true. When it happens, Column Code and columns Utilizzatori should be bring inside table Data. Columns to match are: Cliente, Utilizzatore (be careful about last letter!), Licenziatario, Diritto, Utilizzatore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 14:04:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295422#M170491</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-21T14:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295451#M170493</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is Blank the same as All ? what's the meaning of -1 and -2 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not clear to me what you want to match to what.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 14:16:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295451#M170493</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-21T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295527#M170504</link>
      <description>&lt;P&gt;&amp;nbsp;-1 is the same All but for numeric columns, -2 is the same as Other. Blank is a possibility, means I don't have a value for that row in that column, so it should fall inside All or Other (if blank is declared, then it fall inside Other, if isn't declared in the map table, then it fall inside All).&lt;BR /&gt;&lt;BR /&gt;I want to match all the 5 conditions: Cliente, Diritto, Utilizzatore, Associazione, Licenziatario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: if the map table has:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cliente&lt;/TD&gt;&lt;TD&gt;Utilizzatore&lt;/TD&gt;&lt;TD&gt;Diritto&lt;/TD&gt;&lt;TD&gt;Associazione&lt;/TD&gt;&lt;TD&gt;Licenziatario&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C0000003&lt;/TD&gt;&lt;TD&gt;140&lt;/TD&gt;&lt;TD&gt;210&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It means that any record in the data table with Cliente = C000003, Utilizzatore = 140 and Diritto = 210, should be matched with row 1 in the map, and so,&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;Code&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Utilizzatori&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;RAI Fonogrammi&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These 2 values should be write in the Data table in 2 new different columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, C000003, 140, 210, 333, 444 produce the same result, because "All" condition is set on the last 2 columns of the match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's see how other should work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;Code&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Utilizzatori&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Cliente&lt;/TD&gt;&lt;TD&gt;Utilizzatore&lt;/TD&gt;&lt;TD&gt;Diritto&lt;/TD&gt;&lt;TD&gt;Associazione&lt;/TD&gt;&lt;TD&gt;Licenziatario&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Deejay Tv (Elemedia S.p.A.)&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;C0005282&lt;/TD&gt;&lt;TD&gt;190&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Varie Tv Digitali, Satellitari, Musicali&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Other&lt;/TD&gt;&lt;TD&gt;190&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First row here specifity Customer&amp;nbsp;C0005282, while the 2nd says Other. It means that, for example, if in Data we encounter something like:&lt;BR /&gt;&lt;BR /&gt;C0005282, 190, 444, 555, 666 it falls under first condition and so&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Deejay Tv (Elemedia S.p.A.)&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if we encounter something like:&amp;nbsp;C000560, 190, 333, 55, 66, it should fall under&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Varie Tv Digitali, Satellitari, Musicali&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 21 Nov 2024 14:55:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295527#M170504</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-21T14:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295632#M170508</link>
      <description>&lt;P&gt;(-1 is equivalent to All for numeric columns, and -2 is equivalent to Other). Therefore, I can't simply concatenate and compare them directly.&lt;/P&gt;&lt;P&gt;The 5 columns are "Diritto, Cliente, Utilizzatori, Associazione, Cod_Licenziatario." For example, if there are specific values in 3 columns but the other 2 contain All or -1, then for those two columns, the match is always TRUE. Conversely, if the values are Other or -2, the match is always TRUE except for cases where those specific values have been explicitly declared under the same conditions for the other columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: if I have in my target table: 100, 100, 30, 40, 60 and in this table 100, 100, All, All, 60, means that the condition to verify is just the first 2 columns and the last one. But if I have in the 2nd table 100, 100, 30, 40, 60, then the match is perfect and should be picked from that line.&amp;nbsp; But also, if I have in the 2nd table, 100, 100, 30, -2, Other (for example) and that specific combination of 5 numbers isn't present, than the match should be verify with&amp;nbsp;100, 100, 30, -2, Other ...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;Code&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Utilizzatori&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Cliente&lt;/TD&gt;&lt;TD&gt;Utilizzatore&lt;/TD&gt;&lt;TD&gt;Diritto&lt;/TD&gt;&lt;TD&gt;Associazione&lt;/TD&gt;&lt;TD&gt;Licenziatario&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Deejay Tv (Elemedia S.p.A.)&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;C0005282&lt;/TD&gt;&lt;TD&gt;190&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Varie Tv Digitali, Satellitari, Musicali&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Other&lt;/TD&gt;&lt;TD&gt;190&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider these 2 lines, if in Data a line is:&amp;nbsp;C0005282, 190, 444, 555, 666, it will fall under first line condition and so Code 40 should be wrote aside&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If in Data I have something like:&amp;nbsp;C000555, 190, 444, 555, 666 if will fall under second line condition, because Customer (Cliente) will fall under "Other", 190 is verify, and so Code 43&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 15:43:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4295632#M170508</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-21T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4296080#M170540</link>
      <description>&lt;LI-CODE lang="markup"&gt;For example: if the map table has: 

Cliente	Utilizzatore	Diritto	Associazione	Licenziatario
C0000003	140	210	All	All
 

It means that any record in the data table with Cliente = C000003, Utilizzatore = 140 and Diritto = 210, should be matched with row 1 in the map, and so, 

 Code 	 Utilizzatori 
           1	 RAI Fonogrammi 
&lt;/LI-CODE&gt;
&lt;P&gt;There is no such customer in your sample data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show examples of the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 23:12:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4296080#M170540</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-21T23:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4296715#M170571</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/file/d/14uYY0wZy3BoP-j52fQM32C-g4OoVtlE9/view?usp=drive_link" target="_blank"&gt;https://drive.google.com/file/d/14uYY0wZy3BoP-j52fQM32C-g4OoVtlE9/view?usp=drive_link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I've remade the file to make it more clear then... Inside:&lt;BR /&gt;&lt;BR /&gt;DataWOutput: the results I wanna achieve (column Code and column Utilizzatori)&lt;/P&gt;&lt;P&gt;DataWithouthOutput: same as above but withouth columns, it's the table to which I wanna apply the rules&lt;/P&gt;&lt;P&gt;Maschera Cliente di Budget: the rules, in 5 columns, to apply to the same 5 columns in&amp;nbsp;DataWithouthOutput to achieve&amp;nbsp;DataWOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;U could ignore other tabs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 07:43:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4296715#M170571</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-22T07:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4301379#M170801</link>
      <description>&lt;P&gt;I don't know why but i can see only till answer 9... It's possible you have quite something after it? Counter says there is an answer 10...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 06:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4301379#M170801</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-26T06:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4307406#M171055</link>
      <description>&lt;P&gt;sorry to pester you, may you have an idea how to solve this? thanks... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 10:11:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4307406#M171055</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-29T10:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4308075#M171097</link>
      <description>&lt;P&gt;Sorry, I still cannot understand your mapping logic. Maybe someone else can help you further.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 22:36:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4308075#M171097</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-29T22:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 tables while wildcards are involved...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4308234#M171104</link>
      <description>&lt;P&gt;I guessed so, still don't understand why your last reply is considered 11 and not 13...I've also the code in sql but the problem is to reply it in powerbi...it's complex because it's a logic with 5 variables and 2 wildcards, basically...&lt;BR /&gt;&lt;BR /&gt;shortly, the idea is, for each column value, the possibilities are: specific value, All values (All or -1), other values (Other or -2).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll try to make it simple for whoever may read this topic:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if Columns from C to G could countains values from 1 to 100, first, is to check the fixed number in the sequence, for example 5, -1, 10, All, All, fixed numbers are are 5 and 10. -1, All and All are equivalent so it means that for every combination of these 5 columns where 5 and 10 are the only values declared in columns 1 and 3, and all is in the others, associate it to whatever I have to associate in A and B.&lt;BR /&gt;&lt;BR /&gt;If the declared sequence in a line is instead All, 5, -2, 20, 40 it means:&lt;BR /&gt;&lt;BR /&gt;for thesequence of 5 in the second column, 20 in the 4h and 40 in the last, with whatever in the first...the sequence is valid for whatever is not cleared declared in the 3rd column (-2 = other).&lt;BR /&gt;&lt;BR /&gt;this is the trick in Other basically.&amp;nbsp; Following this example if in other lines we had the same sequence but not other:&lt;BR /&gt;&lt;BR /&gt;Dog, Italy, All, 5, 33, 20, 40&lt;BR /&gt;Cat, Spain, All, 5, 22, 20, 40&lt;BR /&gt;Bird, Germany, All, 5,55, 20, 40&lt;BR /&gt;Dolphin, France, All, 5, -2, 20, 40&lt;BR /&gt;&lt;BR /&gt;this Dolphin, France, All, 5, -2, 20, 40 meant the association is valid for all it has All, 5, "NOT 22, NOT 55, NOT 33", 20, 40" And so a line like this combination:&lt;BR /&gt;&lt;BR /&gt;65, 5, 18, 20, 40 will Be Dolphin, France&lt;BR /&gt;65, 5, 87, 20, 40 also will Be Dolphin, France&lt;/P&gt;&lt;P&gt;88, 5, 33, 20, 40 Will be Dog, Italy&lt;BR /&gt;51, 5, 33, 20, 40 also Will be Dog, Italy&lt;/P&gt;&lt;P&gt;88, 5, 22, 20, 40 will be Cat, Spain&lt;BR /&gt;All, 5, 55, 20, 40 will be Bird, Germany&lt;BR /&gt;&lt;BR /&gt;I hope it's more clear&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 07:46:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Match-2-tables-while-wildcards-are-involved/m-p/4308234#M171104</guid>
      <dc:creator>takui12</dc:creator>
      <dc:date>2024-11-30T07:46:38Z</dc:date>
    </item>
  </channel>
</rss>

