<?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 Statment to DAX in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2454906#M23711</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177312" data-lia-user-login="LeaRupnik" class="lia-mention lia-mention-user"&gt;LeaRupnik&lt;/a&gt;&amp;nbsp;These generally go better if you provide sample data and expected output versus the SQL code.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 12:26:45 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-04-13T12:26:45Z</dc:date>
    <item>
      <title>SQL Statment to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2454897#M23710</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;a have sql statment, how to do this in dax.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select
CAST(sum([CPP Real_pro_kol])/1000 as INT) as sum_Real_pro_kol
,[CPP Datum_posnetka] as datum_posnetka
,year([CPP Datum_posnetka]) as leto_posnetka
,month([CPP Datum_posnetka]) as mesec_posnetka
,[CPP Leto] as leto
,[CPP Mesec] as mesec
from
[cisppr].[f CPP Cista prodajna premija] t1
inner join
(
select
max([CPP Datum_posnetka]) as leto_Datum_posnetka
from
[cisppr].[f CPP Cista prodajna premija]
group by
year([CPP Datum_posnetka])
,month([CPP Datum_posnetka])
) as t2 on t1.[CPP Datum_posnetka]= t2.leto_Datum_posnetka
where
[CPP Datum_posnetka] &amp;lt;= '2022-03-28'
--[CPP Datum_posnetka] &amp;lt;= '2020-12-31'
--and [CPP Leto] =2021



group by
year([CPP Datum_posnetka])
,month([CPP Datum_posnetka])
,[CPP Datum_posnetka]
,[CPP Leto]
,[CPP Mesec]
order by
year([CPP Datum_posnetka])
,month([CPP Datum_posnetka])
,[CPP Datum_posnetka]
,[CPP Leto]
,[CPP Mesec]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;LEa&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:23:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2454897#M23710</guid>
      <dc:creator>LeaRupnik</dc:creator>
      <dc:date>2022-04-13T12:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statment to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2454906#M23711</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177312" data-lia-user-login="LeaRupnik" class="lia-mention lia-mention-user"&gt;LeaRupnik&lt;/a&gt;&amp;nbsp;These generally go better if you provide sample data and expected output versus the SQL code.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:26:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2454906#M23711</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-04-13T12:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statment to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2456676#M23721</link>
      <description>&lt;P class=""&gt;Hello&lt;/P&gt;&lt;P class=""&gt;I am adding a description of what I need. I have data entered in the table for each day. I would like to return only for maximum data in each year plus month. That is, for 2020 and January, I would only need data from 31.1.2020&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;thanks&lt;/P&gt;&lt;P class=""&gt;Lea&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 07:33:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2456676#M23721</guid>
      <dc:creator>LeaRupnik</dc:creator>
      <dc:date>2022-04-14T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statment to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2465392#M23778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177312" data-lia-user-login="LeaRupnik" class="lia-mention lia-mention-user"&gt;LeaRupnik&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;Could you pls share some sample data ,and what you get final by the sql . Remember to remove confidential data.&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;Lucien&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 09:34:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-Statment-to-DAX/m-p/2465392#M23778</guid>
      <dc:creator>v-luwang-msft</dc:creator>
      <dc:date>2022-04-20T09:34:02Z</dc:date>
    </item>
  </channel>
</rss>

