<?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: Index Match - Match row datas with table header in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/703301#M853</link>
    <description>&lt;P&gt;Anyone else know any medoth, where the formulae ready amd match curreny in rows with table headers.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Anonymous&lt;/a&gt;set relationship between currency and data table on date, where currency table will be on one side of the relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add following column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FX Rate = 
SWITCH(
  DataTable[Currency],
  "OMR", RELATED( CurrencyTable[OMR] ),
  "USD", RELATED( CurrencyTable[USD] ),
  "EURO", RELATED( CurrencyTable[EURO] )
)

&lt;/PRE&gt;&lt;P&gt;This is one way to do this, other way would be to unpivot currency table and then use lookup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Anonymous&lt;/a&gt;set relationship between currency and data table on date, where currency table will be on one side of the relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add following column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FX Rate = 
SWITCH(
  DataTable[Currency],
  "OMR", RELATED( CurrencyTable[OMR] ),
  "USD", RELATED( CurrencyTable[USD] ),
  "EURO", RELATED( CurrencyTable[EURO] )
)

&lt;/PRE&gt;&lt;P&gt;This is one way to do this, other way would be to unpivot currency table and then use lookup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 10:57:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-30T10:57:42Z</dc:date>
    <item>
      <title>Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701587#M825</link>
      <description>&lt;P&gt;I'm looking for similar function like Index Match- Refer below table. From "Currency" table- I wish to bring exchange rate in "data" table- by matching date and Currency with currency table date and column header- withought pivoting the Currency Table ( As my currency table has 10 years date data)&lt;/P&gt;&lt;P&gt;Excel Equivalent"&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=INDEX($A$3:$D$10,MATCH(G4,$A$3:$A$10,0),MATCH(I4,$A$3:$D$3,0))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank in advance for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 15:55:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701587#M825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T15:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701608#M829</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; set relationship between currency and data table on date, where currency table will be on one side of the relationship.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add following column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FX Rate = 
SWITCH(
  DataTable[Currency],
  "OMR", RELATED( CurrencyTable[OMR] ),
  "USD", RELATED( CurrencyTable[USD] ),
  "EURO", RELATED( CurrencyTable[EURO] )
)

&lt;/PRE&gt;
&lt;P&gt;This is one way to do this, other way would be to unpivot currency table and then use lookup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:18:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701608#M829</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-28T16:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701623#M831</link>
      <description>&lt;P&gt;Thanks. Great. It helps. Is there any other way that it reads the Currency abreviations like OMR, USD etc and match it. As my table has several currencies and more than 3650 dates.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:42:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701623#M831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701624#M832</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; in thst case you have to unpivot your currency table, to do so, go to query editor, select date column in currency table, right click, and select&amp;nbsp;&lt;EM&gt;unpivot other columns.&amp;nbsp;&lt;/EM&gt;You will get two columns&amp;nbsp;&lt;EM&gt;attribute and value&lt;/EM&gt;, rename those to currency and rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once these changes are applied, we don't need to set relationship between currency and sales table but use lookupvalue function, read &lt;A href="https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_self"&gt;here&lt;/A&gt; about this function.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:45:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/701624#M832</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-28T16:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/702358#M840</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help. As suggested by you, I have unpivot the table as below: But unable to write the lookup formulae- As I need to match date as well as currency before picking up the value. Could you help me with the formulae.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 11:19:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/702358#M840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-29T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/702397#M843</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; here it is, add a&amp;nbsp;&lt;STRONG&gt;column&lt;/STRONG&gt; in data table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FX Rate  =
LOOKUPVALUE&lt;BR /&gt;( 
CurrencyTable[Value], 
CurrencyTable[Date],
DataTable[Date],
CurrencyTable[Currency],
DataTable[Currency]
)
&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 12:44:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/702397#M843</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-29T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/703301#M853</link>
      <description>&lt;P&gt;Anyone else know any medoth, where the formulae ready amd match curreny in rows with table headers.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Anonymous&lt;/a&gt;set relationship between currency and data table on date, where currency table will be on one side of the relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add following column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FX Rate = 
SWITCH(
  DataTable[Currency],
  "OMR", RELATED( CurrencyTable[OMR] ),
  "USD", RELATED( CurrencyTable[USD] ),
  "EURO", RELATED( CurrencyTable[EURO] )
)

&lt;/PRE&gt;&lt;P&gt;This is one way to do this, other way would be to unpivot currency table and then use lookup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Anonymous&lt;/a&gt;set relationship between currency and data table on date, where currency table will be on one side of the relationship.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add following column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FX Rate = 
SWITCH(
  DataTable[Currency],
  "OMR", RELATED( CurrencyTable[OMR] ),
  "USD", RELATED( CurrencyTable[USD] ),
  "EURO", RELATED( CurrencyTable[EURO] )
)

&lt;/PRE&gt;&lt;P&gt;This is one way to do this, other way would be to unpivot currency table and then use lookup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 10:57:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/703301#M853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-30T10:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/703303#M854</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 10:58:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/703303#M854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-30T10:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/703356#M857</link>
      <description>&lt;P&gt;Out of the two method, which method is best and consumes less RAM / more efficient. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 12:16:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/703356#M857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-30T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Index Match - Match row datas with table header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/704348#M879</link>
      <description>&lt;P&gt;Hello, how to write measures for above two currency table options?&lt;/P&gt;&lt;P&gt;Will they be more effective or effiecient and consume less computing power?&amp;nbsp; In my data-what happens every time new data or new data table comes and the currency exchange rate has to be applied. So wish too know out of the four options- i.e. with currency table- calculated column or measure&amp;nbsp; ,&amp;nbsp; pivot currency table- calculated column or measure- which one will be the effienct way&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 10:01:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Index-Match-Match-row-datas-with-table-header/m-p/704348#M879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T10:01:29Z</dc:date>
    </item>
  </channel>
</rss>

