<?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 If created date matches calendar date &amp;amp; value is greater than 0, then &amp;quot;true&amp;quot; in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-created-date-matches-calendar-date-amp-value-is-greater-than/m-p/3172702#M114427</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to identify names where a created date year and month matches the calendar date year and month AND the 'Previous Month Charagable Var' is greater than 0 so that I can add a true/false legend to my stacked column chart visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The created date and calendar date have an inactive relationship, the "Previous Month Chargable Var' is a measure.&lt;/P&gt;&lt;P&gt;Any help is appreciated!&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;</description>
    <pubDate>Tue, 04 Apr 2023 23:56:03 GMT</pubDate>
    <dc:creator>kajelliott</dc:creator>
    <dc:date>2023-04-04T23:56:03Z</dc:date>
    <item>
      <title>If created date matches calendar date &amp; value is greater than 0, then "true"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-created-date-matches-calendar-date-amp-value-is-greater-than/m-p/3172702#M114427</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to identify names where a created date year and month matches the calendar date year and month AND the 'Previous Month Charagable Var' is greater than 0 so that I can add a true/false legend to my stacked column chart visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The created date and calendar date have an inactive relationship, the "Previous Month Chargable Var' is a measure.&lt;/P&gt;&lt;P&gt;Any help is appreciated!&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;</description>
      <pubDate>Tue, 04 Apr 2023 23:56:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-created-date-matches-calendar-date-amp-value-is-greater-than/m-p/3172702#M114427</guid>
      <dc:creator>kajelliott</dc:creator>
      <dc:date>2023-04-04T23:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: If created date matches calendar date &amp; value is greater than 0, then "true"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-created-date-matches-calendar-date-amp-value-is-greater-than/m-p/3172763#M114438</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497222" data-lia-user-login="kajelliott" class="lia-mention lia-mention-user"&gt;kajelliott&lt;/a&gt; , Not very clear. I usually join the date(without timestamp) with date table and create this month vs last month &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))&lt;BR /&gt;last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))&lt;BR /&gt;last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))&lt;BR /&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))&lt;BR /&gt;last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))&lt;BR /&gt;last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Time Intelligence, Part of learn Power BI &lt;A href="https://youtu.be/cN8AO3_vmlY?t=27510" target="_blank"&gt;https://youtu.be/cN8AO3_vmlY?t=27510&lt;/A&gt;&lt;BR /&gt;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 02:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-created-date-matches-calendar-date-amp-value-is-greater-than/m-p/3172763#M114438</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-04-05T02:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: If created date matches calendar date &amp; value is greater than 0, then "true"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-created-date-matches-calendar-date-amp-value-is-greater-than/m-p/3172818#M114444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies I wasnt very clear! Ive re worked my example a bit to hopefully give you a better idea of what I mean.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm trying to create a measure so that if the Calendar YearMonth matches the Created YearMonth AND the 'Previous Month Chargable Var' equals greater than zero, then flag. (to confirm, the 'Previous Month Chargable Var is already a variation of volume between months).&lt;BR /&gt;I have highlighed the below table to show what I mean.&lt;BR /&gt;Then once I have flagged everything, I can then add it to my column chart so that it is stacked, flagged and unflagged.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hopefully that makes better sense!&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 02:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-created-date-matches-calendar-date-amp-value-is-greater-than/m-p/3172818#M114444</guid>
      <dc:creator>kajelliott</dc:creator>
      <dc:date>2023-04-05T02:45:12Z</dc:date>
    </item>
  </channel>
</rss>

