<?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 To perform lag in DAX dynamically in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-perform-lag-in-DAX-dynamically/m-p/3382670#M157584</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the number of days between the current date and the previous row date or create a lag column which shifts the dates only for the selected subset/group selected on the slicer.&lt;BR /&gt;Suppose highlighted orange box is my data, I want the results as shown beside the table. Based on the slicers selected I want the number of days bewteen the events(A,B) or subevents(AA,AB,BA,BB)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Ex: In the group, if event A has occured on 01/01/2023 and next time event A has occured on 01/03/2023, I want the number of days difference as 2 days, This measure/calculated column should work dynamically for any slicer group.&lt;BR /&gt;Please help me.&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 11:38:27 GMT</pubDate>
    <dc:creator>Charitha_RK</dc:creator>
    <dc:date>2023-08-16T11:38:27Z</dc:date>
    <item>
      <title>To perform lag in DAX dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-perform-lag-in-DAX-dynamically/m-p/3382670#M157584</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the number of days between the current date and the previous row date or create a lag column which shifts the dates only for the selected subset/group selected on the slicer.&lt;BR /&gt;Suppose highlighted orange box is my data, I want the results as shown beside the table. Based on the slicers selected I want the number of days bewteen the events(A,B) or subevents(AA,AB,BA,BB)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Ex: In the group, if event A has occured on 01/01/2023 and next time event A has occured on 01/03/2023, I want the number of days difference as 2 days, This measure/calculated column should work dynamically for any slicer group.&lt;BR /&gt;Please help me.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 11:38:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-perform-lag-in-DAX-dynamically/m-p/3382670#M157584</guid>
      <dc:creator>Charitha_RK</dc:creator>
      <dc:date>2023-08-16T11:38:27Z</dc:date>
    </item>
  </channel>
</rss>

