<?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: DATEADD inside a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2858714#M91968</link>
    <description>&lt;P&gt;Of course it's not working because you have not taken the effort to get familiar with the time-intel functions and how they work in Power BI. Please head over to &lt;A href="http://dax.guide/dateadd" target="_blank"&gt;http://dax.guide/dateadd&lt;/A&gt;&amp;nbsp;and carefully study the documentation. Then, build &lt;STRONG&gt;a correct model&lt;/STRONG&gt; (meaning: star-schema).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This measure should work fine after you've understood how the model should be structured:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;TEST Orders =
CALCULATE(
    DISTINCTCOUNT( 'Export'[Id] ),
    KEEPFILTERS( 'Export'[CaseTyp] = "X" ),
    KEEPFILTERS( 'Export'[Closed] = "Confirmed" ),
    KEEPFILTERS( 'Export'[Status]  &amp;lt;&amp;gt; "Pre" ),
    DATEADD(
        'Calendar'[Date],
        30,
        DAY
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 09:29:07 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-10-24T09:29:07Z</dc:date>
    <item>
      <title>DATEADD inside a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2858650#M91966</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to create a measure with the help of DATEADD but something is not working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FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;''Export ','Export&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[Status]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;"Pre"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Export'&lt;/SPAN&gt;&lt;SPAN&gt;[DeliveryDate]&lt;/SPAN&gt;&lt;SPAN&gt;,+&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Niclas&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Oct 2022 09:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2858650#M91966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-24T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD inside a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2858714#M91968</link>
      <description>&lt;P&gt;Of course it's not working because you have not taken the effort to get familiar with the time-intel functions and how they work in Power BI. Please head over to &lt;A href="http://dax.guide/dateadd" target="_blank"&gt;http://dax.guide/dateadd&lt;/A&gt;&amp;nbsp;and carefully study the documentation. Then, build &lt;STRONG&gt;a correct model&lt;/STRONG&gt; (meaning: star-schema).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This measure should work fine after you've understood how the model should be structured:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;TEST Orders =
CALCULATE(
    DISTINCTCOUNT( 'Export'[Id] ),
    KEEPFILTERS( 'Export'[CaseTyp] = "X" ),
    KEEPFILTERS( 'Export'[Closed] = "Confirmed" ),
    KEEPFILTERS( 'Export'[Status]  &amp;lt;&amp;gt; "Pre" ),
    DATEADD(
        'Calendar'[Date],
        30,
        DAY
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 09:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2858714#M91968</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-24T09:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD inside a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2874285#M92847</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;Is your problem solved, if it is solved, you can mark the correct answer, if not, can provide detailed information, we can help you better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:21:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2874285#M92847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-31T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: DATEADD inside a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2903799#M94666</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help! I will read the documentation. Regarding the star-schema is already in place, just imported a table and wanted to try this first!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 13:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATEADD-inside-a-measure/m-p/2903799#M94666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-14T13:51:03Z</dc:date>
    </item>
  </channel>
</rss>

