<?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 Table calculation for Direct Query with historical data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-calculation-for-Direct-Query-with-historical-data/m-p/4022709#M158724</link>
    <description>&lt;P&gt;I have two tables imported through Direct Query &lt;STRONG&gt;related by ID&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1&lt;/STRONG&gt; contains details such as &lt;EM&gt;Status&lt;/EM&gt; (Red, Green) and the &lt;EM&gt;Date&lt;/EM&gt; when they appear on that status (red time, green time).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 2&lt;/STRONG&gt; has &lt;EM&gt;Serial no.&lt;/EM&gt; for each ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to show in a table visualization on a daily basis how many ID's are opened with Red status and how many turned Green. Note that some Red status ID's can remain on red status for a longer period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So I would need to count how many &lt;STRONG&gt;unique&lt;/STRONG&gt; ID's are on status Red and how many Serials are attributed to those for each day and when they are changed to Green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the client wants this in real time and I have limited experience with Direct Query (and its limitations) I can't make any CALCULATE or New Columns where I can use it on a row by row basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now my data looks something 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;After importing the data, ID &amp;amp; Date are recognised as Whole no. and Date types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can something like this be done with Direct Query option? I tried several tips that I found online (COUNTROWS, SUMX, VAR), the general rule I saw is that Measures are most commonly used in these situations, however it's not showing the same data as in the examples above or defaults to an error.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 10:51:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-03T10:51:18Z</dc:date>
    <item>
      <title>Table calculation for Direct Query with historical data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-calculation-for-Direct-Query-with-historical-data/m-p/4022709#M158724</link>
      <description>&lt;P&gt;I have two tables imported through Direct Query &lt;STRONG&gt;related by ID&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1&lt;/STRONG&gt; contains details such as &lt;EM&gt;Status&lt;/EM&gt; (Red, Green) and the &lt;EM&gt;Date&lt;/EM&gt; when they appear on that status (red time, green time).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 2&lt;/STRONG&gt; has &lt;EM&gt;Serial no.&lt;/EM&gt; for each ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to show in a table visualization on a daily basis how many ID's are opened with Red status and how many turned Green. Note that some Red status ID's can remain on red status for a longer period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So I would need to count how many &lt;STRONG&gt;unique&lt;/STRONG&gt; ID's are on status Red and how many Serials are attributed to those for each day and when they are changed to Green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the client wants this in real time and I have limited experience with Direct Query (and its limitations) I can't make any CALCULATE or New Columns where I can use it on a row by row basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now my data looks something 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;After importing the data, ID &amp;amp; Date are recognised as Whole no. and Date types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can something like this be done with Direct Query option? I tried several tips that I found online (COUNTROWS, SUMX, VAR), the general rule I saw is that Measures are most commonly used in these situations, however it's not showing the same data as in the examples above or defaults to an error.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 10:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-calculation-for-Direct-Query-with-historical-data/m-p/4022709#M158724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-03T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table calculation for Direct Query with historical data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-calculation-for-Direct-Query-with-historical-data/m-p/4023985#M158826</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide detailed sample data file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 02:34:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-calculation-for-Direct-Query-with-historical-data/m-p/4023985#M158826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T02:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table calculation for Direct Query with historical data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-calculation-for-Direct-Query-with-historical-data/m-p/4024444#M158859</link>
      <description>&lt;P&gt;I'm going to try and show this as best I can through the reply function as I can't upload pbix or xlsx since I'm a new member:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;TABLE 1&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;TABLE 2&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What I would like to show is a table that shows &lt;U&gt;in one visualization&lt;/U&gt; how many Red Id's/Serials are on a daily basis and how many Green Id's/Serials are, knowing that some Red Id's can turn green on the same day OR be resolved the following days:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The main issue here is that my data is through Direct Query and I saw that many DAX functions are not available so my data appears like this without summing the Id's:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this better explains my inquiry!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 07:31:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-calculation-for-Direct-Query-with-historical-data/m-p/4024444#M158859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T07:31:23Z</dc:date>
    </item>
  </channel>
</rss>

