<?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: I have tableau calculation and i want to convert in Power BI DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-tableau-calculation-and-i-want-to-convert-in-Power-BI-DAX/m-p/2189798#M51162</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you would like to calculate the interval of CR Status Changed Date for same DCC. If so, you may try this Measure.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DateDiff_ =&lt;/P&gt;
&lt;P&gt;VAR val =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECTEDVALUE ( 'Table'[CR Status Changed Date] )&lt;/P&gt;
&lt;P&gt;VAR cur_date =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE (&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; val,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER ( ALL ( 'Table' ), 'Table'[DCC] = MAX ( 'Table'[DCC] ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;VAR search_date =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE (&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN ( 'Table'[CR Status Changed Date] ),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER ( ALL ( 'Table' ), 'Table'[DCC] = MAX ( 'Table'[DCC] ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEDIFF ( search_date, cur_date, DAY )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, result should look like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached the pbix file as reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. If you still have problems on it or I misunderstand your needs, please feel free to let me know. Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 08:49:44 GMT</pubDate>
    <dc:creator>v-cazheng-msft</dc:creator>
    <dc:date>2021-11-15T08:49:44Z</dc:date>
    <item>
      <title>I have tableau calculation and i want to convert in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-tableau-calculation-and-i-want-to-convert-in-Power-BI-DAX/m-p/2184444#M50908</link>
      <description>&lt;P&gt;this is tableau calcalation and i want conver into dax&lt;/P&gt;&lt;P&gt;i need help on this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF LOOKUP(MIN([DCC]),0) = LOOKUP(MIN([DCC]),-1)&lt;BR /&gt;THEN DATEDIFF('day',LOOKUP(MIN([CR Status Changed Date]), -1), LOOKUP(MIN([CR Status Changed Date]), 0))&lt;BR /&gt;END&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 05:51:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-tableau-calculation-and-i-want-to-convert-in-Power-BI-DAX/m-p/2184444#M50908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-11T05:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: I have tableau calculation and i want to convert in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-tableau-calculation-and-i-want-to-convert-in-Power-BI-DAX/m-p/2184456#M50909</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , In tableau LOOKUP is a table calculation, which means you can go across visual rows. In Power bi, there is no equivalent. You have to perform calculation using row context &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 06:04:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-tableau-calculation-and-i-want-to-convert-in-Power-BI-DAX/m-p/2184456#M50909</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-11T06:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: I have tableau calculation and i want to convert in Power BI DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-tableau-calculation-and-i-want-to-convert-in-Power-BI-DAX/m-p/2189798#M51162</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you would like to calculate the interval of CR Status Changed Date for same DCC. If so, you may try this Measure.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DateDiff_ =&lt;/P&gt;
&lt;P&gt;VAR val =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECTEDVALUE ( 'Table'[CR Status Changed Date] )&lt;/P&gt;
&lt;P&gt;VAR cur_date =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE (&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; val,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER ( ALL ( 'Table' ), 'Table'[DCC] = MAX ( 'Table'[DCC] ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;VAR search_date =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE (&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN ( 'Table'[CR Status Changed Date] ),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER ( ALL ( 'Table' ), 'Table'[DCC] = MAX ( 'Table'[DCC] ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEDIFF ( search_date, cur_date, DAY )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, result should look like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached the pbix file as reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. If you still have problems on it or I misunderstand your needs, please feel free to let me know. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 08:49:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-tableau-calculation-and-i-want-to-convert-in-Power-BI-DAX/m-p/2189798#M51162</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2021-11-15T08:49:44Z</dc:date>
    </item>
  </channel>
</rss>

