<?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: Measure to display Project IDs based on data in 2 columns. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188468#M115537</link>
    <description>&lt;P&gt;Hi !&lt;BR /&gt;Thank you for this. I am able to see only the ID which has 3 Red values now.&lt;BR /&gt;My bad, in my 2nd question actually I was confused between the CALCULATETABLE function that you used with the creating a calculated table option that we have in PBI Desktop. Hence the confusion. It is clear now.&lt;BR /&gt;Also can you explain, when I am using the Reporting Date column in the visual, I am able to see the data. Like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;But as soon as I change it to Date Hierarchy, the visual goes blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Thanks again !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 11:45:10 GMT</pubDate>
    <dc:creator>SDM_1997</dc:creator>
    <dc:date>2023-04-14T11:45:10Z</dc:date>
    <item>
      <title>Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3187906#M115499</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;Need help regarding creating DAX Measure.&amp;nbsp;&lt;BR /&gt;I have my data in the following format.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Reporting Date is created by concatenating the Month and Year column and then converting to date type. Both Month and Year are in text format.&lt;BR /&gt;My requirement is to display all the Project IDs where the Overall Status has remained "Red" for the &lt;STRONG&gt;last 3 months &lt;/STRONG&gt;(March ,February and January in this case). Currently this is April, so we have data till March only. In May ,April's data is received.&lt;BR /&gt;So, in this case, only 'ID-1' will be the output since last 3 months were all Red.&lt;BR /&gt;The expected output is something like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How to write a measure for this?&lt;BR /&gt;I am trying for DAX measure because many calculated columns affect refresh perfromance. So, I want to avoid that unless a measure is not possible here.&lt;BR /&gt;Please help.&amp;nbsp;&lt;BR /&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 07:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3187906#M115499</guid>
      <dc:creator>SDM_1997</dc:creator>
      <dc:date>2023-04-14T07:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188040#M115508</link>
      <description>&lt;P&gt;Create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Red for 3 months =
VAR StartDate =
    EOMONTH ( TODAY (), -4 ) + 1
VAR EndDate =
    EOMONTH ( TODAY (), -1 )
VAR Statuses =
    CALCULATETABLE (
        VALUES ( 'Table'[Overall status] ),
        DATESBETWEEN ( 'Table'[Reporting date], StartDate, EndDate )
    )
RETURN
    IF ( COUNTROWS ( Statuses ) = 1 &amp;amp;&amp;amp; "Red" IN Statuses, 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;and then use that as a visual level filter to only show when the value is 1&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 08:35:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188040#M115508</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-14T08:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188304#M115522</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;Thank you for the reply.&lt;BR /&gt;I used your measure and as a DAX newbie, I have a few doubts to clarify.&lt;BR /&gt;Please refer to the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I created a table visual and added the measure in the visual level filter. But the thing is as soon as I add the Overall Status field, it is also showing the PRJ-2 value, since it has 2 Red values. Can you suggest a fix such that only the projects which have 3 Reds in the consecutive 3 months will be shown? So, PRJ-2 will be omitted.&lt;BR /&gt;Then, another doubt is, Did you create a calculated table because 2 columns needs to be used for calculation? Since, to create a normal DAX measure, calculation needs to be using 1 column only?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 10:29:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188304#M115522</guid>
      <dc:creator>SDM_1997</dc:creator>
      <dc:date>2023-04-14T10:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188356#M115525</link>
      <description>&lt;P&gt;The below should limit the measure to only show values when there are 3 entries,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Red for 3 months =
VAR StartDate =
    EOMONTH ( TODAY (), -4 ) + 1
VAR EndDate =
    EOMONTH ( TODAY (), -1 )
VAR Statuses =
    CALCULATETABLE (
        VALUES ( 'Table'[Overall status] ),
        DATESBETWEEN ( 'Table'[Reporting date], StartDate, EndDate )
    )
VAR NumDates =
    COUNTROWS (
        CALCULATETABLE (
            VALUES ( 'Table'[Reporting date] ),
            DATESBETWEEN ( 'Table'[Reporting date], StartDate, EndDate )
        )
    )
RETURN
    IF ( COUNTROWS ( Statuses ) = 1 &amp;amp;&amp;amp; "Red" IN Statuses &amp;amp;&amp;amp; NumDates = 3, 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;I'm not sure what you mean in your second question. A DAX calculation can use as many columns as it needs to.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 10:56:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188356#M115525</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-14T10:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188468#M115537</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;Thank you for this. I am able to see only the ID which has 3 Red values now.&lt;BR /&gt;My bad, in my 2nd question actually I was confused between the CALCULATETABLE function that you used with the creating a calculated table option that we have in PBI Desktop. Hence the confusion. It is clear now.&lt;BR /&gt;Also can you explain, when I am using the Reporting Date column in the visual, I am able to see the data. Like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;But as soon as I change it to Date Hierarchy, the visual goes blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Thanks again !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 11:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188468#M115537</guid>
      <dc:creator>SDM_1997</dc:creator>
      <dc:date>2023-04-14T11:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188550#M115553</link>
      <description>&lt;P&gt;I think if you wanted to use the date hierarchy you would need to change the code, change every mention of 'Table'[Reporting date] to 'Table'[Reporting date].Date or&amp;nbsp;'Table'[Reporting date].[Date], not sure which.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:37:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188550#M115553</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-14T12:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188673#M115565</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;Yes it is .[Date], the date hierarchy is working.&lt;BR /&gt;I currently tried the Measure in my actual dataset now.&lt;BR /&gt;It is working but there is one thing.&lt;BR /&gt;So, since the Reporting Date column actually has many months of data, so, bringing the 'Table'[Reporting Date] in the visual shows all the previous data as well. So, basically data prior to the latest 3 months, where different values like Green or Gray maybe present.&lt;BR /&gt;I tried to create a new measure which will filter the reporting date to 3 months only using your DATESBETWEEN function usage and then bring that measure in the [Red for 3 Months] measure. Like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Reporting Dates in 3 Months =
VAR StartDate =
    EOMONTH ( TODAY (), -4 ) + 1
VAR EndDate =
    EOMONTH ( TODAY (), -1 )

      RETURN 
            DATESBETWEEN ( 'Table'[Reporting date], StartDate, EndDate )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Then after I replaced this [Reporting Dates in 3 Months] with all the DATESBETWEEN used in [Red in 3 Months], got an error "A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed".&lt;BR /&gt;&lt;BR /&gt;Can you point out where the mistake is happening?&amp;nbsp;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188673#M115565</guid>
      <dc:creator>SDM_1997</dc:creator>
      <dc:date>2023-04-14T13:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188696#M115570</link>
      <description>&lt;P&gt;That measure is returning a table of values, so it needs to be used where a table is expected rather than a scalar value. If you are trying to exclude older data from your table visual you could create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Reporting Dates is in last 3 Months =
VAR StartDate =
    EOMONTH ( TODAY (), -4 ) + 1
VAR EndDate =
    EOMONTH ( TODAY (), -1 )
RETURN
    IF (
        SELECTEDVALUE ( 'Table'[Reporting date] )
            IN DATESBETWEEN ( 'Table'[Reporting date], StartDate, EndDate ),
        1
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;and then use that as a visual level filter to only show where the value is 1.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:42:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188696#M115570</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-14T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188852#M115583</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thank you very much for your help !!&lt;BR /&gt;A lot of my problems and doubts were cleared.&lt;BR /&gt;&lt;BR /&gt;Happy Weekend !&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3188852#M115583</guid>
      <dc:creator>SDM_1997</dc:creator>
      <dc:date>2023-04-14T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display Project IDs based on data in 2 columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3193831#M115885</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Just to add to this, restricting data to show for the latest 3 months only for which we were comparing data for.&lt;BR /&gt;Found this setting in the visual level filter to dynamically show only the last 3 months of data.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So, no need for a separate measure and this actually makes the visual load faster as well.&lt;BR /&gt;Just adding it here for others to refer in future.&lt;BR /&gt;Thanks !!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-Project-IDs-based-on-data-in-2-columns/m-p/3193831#M115885</guid>
      <dc:creator>SDM_1997</dc:creator>
      <dc:date>2023-04-18T13:49:25Z</dc:date>
    </item>
  </channel>
</rss>

