<?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: SQL to Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3278120#M121682</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;in part&amp;nbsp;&lt;SPAN&gt;TotalCtScanAbort&amp;nbsp;part&amp;nbsp;'FSMachineKPI'[fk_machine] IN VALUES ( FilteredMachineIDs )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try to replace with FilteredMachineIDs and see results&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:47:14 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2023-06-11T11:47:14Z</dc:date>
    <item>
      <title>SQL to Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3275874#M121519</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;SELECT ROUND(CAST(SUM(ctScanAbort) as float) /747683, 3)&lt;BR /&gt;&amp;nbsp; FROM [PetData].[dbo].[MachineKPI]&amp;nbsp;&lt;BR /&gt;&amp;nbsp; WHERE fk_machine IN (Select m.id from [PetData].[dbo].Machine m&amp;nbsp;&lt;BR /&gt;&amp;nbsp; INNER JOIN Country c ON m.fk_country = c.id WHERE m.active = 1 and c.reporting = 1 and fk_platform = 4) AND ctScanAbort IS NOT NULL;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Can someone help me out in converting this sql query to Dax,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this out but it shows error :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;VAR FilteredMachineIDs =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;VALUES ( 'Machine'[id] ),&lt;BR /&gt;'Machine'[active] = 1,&lt;BR /&gt;'Machine'[fk_platform] = 4,&lt;BR /&gt;'Country'[reporting] = 1,&lt;BR /&gt;'Machine'[fk_country] = 'Country'[id]&lt;BR /&gt;)&lt;BR /&gt;VAR TotalCtScanAbort =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'FSMachineKPI'[ctScanAbort] ),&lt;BR /&gt;'FSMachineKPI'[ctScanAbort] IS NOT BLANK (),&lt;BR /&gt;'FSMachineKPI'[fk_machine] IN VALUES ( FilteredMachineIDs )&lt;BR /&gt;)&lt;BR /&gt;VAR Result =&lt;BR /&gt;ROUND ( DIVIDE ( TotalCtScanAbort, 747683.0 ), 3 )&lt;BR /&gt;RETURN&lt;BR /&gt;Result&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jun 2023 05:10:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3275874#M121519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-09T05:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3275886#M121520</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Idea for you: AI&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 05:33:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3275886#M121520</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-09T05:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3275891#M121522</link>
      <description>&lt;P&gt;Tried out ChatGpt but it still dosent work&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 05:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3275891#M121522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-09T05:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3278120#M121682</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;in part&amp;nbsp;&lt;SPAN&gt;TotalCtScanAbort&amp;nbsp;part&amp;nbsp;'FSMachineKPI'[fk_machine] IN VALUES ( FilteredMachineIDs )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try to replace with FilteredMachineIDs and see results&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-to-Dax/m-p/3278120#M121682</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-11T11:47:14Z</dc:date>
    </item>
  </channel>
</rss>

