<?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 DAX code to Input data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-Input-data/m-p/3067728#M106288</link>
    <description>&lt;P&gt;hi guys I need help, so i have data like this..&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and if we filter in one of data in sitename column, it'll be like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;as we can see there is 4 sitename that has same name and SiteID but each them have different sonumb, so in the column tenant rank i want it'll rank based on the oldest date, like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;if we clear the filter, it'll be like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and if we sorted by SiteName, It'll be like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;there is 15k data in my masterlist, and it must be take lots of time if I input tenant rank one by one which is that I have to filter each siteID to see is there only 1 siteName or maybe more that actually has different sonumb. I've been looking for answer like a week and still haven't find the answer :'(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 04:25:18 GMT</pubDate>
    <dc:creator>Robyrubyjane</dc:creator>
    <dc:date>2023-02-08T04:25:18Z</dc:date>
    <item>
      <title>DAX code to Input data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-Input-data/m-p/3067728#M106288</link>
      <description>&lt;P&gt;hi guys I need help, so i have data like this..&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and if we filter in one of data in sitename column, it'll be like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;as we can see there is 4 sitename that has same name and SiteID but each them have different sonumb, so in the column tenant rank i want it'll rank based on the oldest date, like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;if we clear the filter, it'll be like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and if we sorted by SiteName, It'll be like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;there is 15k data in my masterlist, and it must be take lots of time if I input tenant rank one by one which is that I have to filter each siteID to see is there only 1 siteName or maybe more that actually has different sonumb. I've been looking for answer like a week and still haven't find the answer :'(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 04:25:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-Input-data/m-p/3067728#M106288</guid>
      <dc:creator>Robyrubyjane</dc:creator>
      <dc:date>2023-02-08T04:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX code to Input data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-Input-data/m-p/3067863#M106294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Tenant rank measure: =
IF (
    NOT ISBLANK ( MAX ( Data[rental start] ) ) &amp;amp;&amp;amp; HASONEVALUE ( Site[siteID] ),
    RANKX (
        FILTER ( ALL ( Data ), Data[siteID] = SELECTEDVALUE ( Data[siteID] ) ),
        CALCULATE ( MAX ( Data[rental start] ) ),
        ,
        ASC
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 05:28:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-code-to-Input-data/m-p/3067863#M106294</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-02-08T05:28:01Z</dc:date>
    </item>
  </channel>
</rss>

