<?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: Consulta suma con filtros (?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990740#M100608</link>
    <description>&lt;P&gt;Update the source step in the code below.&amp;nbsp;&lt;BR /&gt;Does this work?&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Xc3BCQAxCETRXjwHHI0SU0uw/zaSva1ehIHH9xyK5QYahM1QVsg3TN5ZQTl+YLJEAa4VaC84OuiFCgSsFVgrGEt9MZ0yLw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [id_Estacion = _t, Fecha = _t, id_Campaña = _t, #"Precipitacion (mm)" = _t]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"id_Estacion", Int64.Type}, {"Fecha", type date}, {"id_Campaña", Int64.Type}, {"Precipitacion (mm)", Int64.Type}}),&lt;BR /&gt;#"Inserted Year" = Table.AddColumn(#"Changed Type", "Year", each Date.Year([Fecha]), Int64.Type),&lt;BR /&gt;#"Grouped Rows" = Table.Group(#"Inserted Year", {"id_Estacion", "Year"}, {{"Rainfall (mm)", each List.Sum([#"Precipitacion (mm)"]), type nullable number}})&lt;BR /&gt;in&lt;BR /&gt;#"Grouped Rows"&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 21:10:25 GMT</pubDate>
    <dc:creator>adudani</dc:creator>
    <dc:date>2022-12-27T21:10:25Z</dc:date>
    <item>
      <title>Consulta suma con filtros (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990623#M100602</link>
      <description>&lt;P&gt;Hola! tengo que hacer una suma de las precipitaciones anuales de varias estaciones meteorológicas, para lo cual tengo una columna de precipitaciones (en mm) una de la fecha de dicha precipitacion (día, mes, año) y otra del ID de la Estacion meteorológica. Cómo hago para poder obtener cuanto llovio por año por estación? Estuve googleando pero no encontré nada que entendiera como para poder hacerlo.&lt;/P&gt;&lt;P&gt;Desde ya muchisimas gracias por cualquier ayuda o guía.&lt;/P&gt;&lt;P&gt;Saludos!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 19:11:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990623#M100602</guid>
      <dc:creator>ManucruzGR</dc:creator>
      <dc:date>2022-12-27T19:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Consulta suma con filtros (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990715#M100604</link>
      <description>&lt;P&gt;can you post sample data / columns / pbix file for reference after removing sensitive data and also a sample output?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 20:41:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990715#M100604</guid>
      <dc:creator>adudani</dc:creator>
      <dc:date>2022-12-27T20:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Consulta suma con filtros (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990735#M100606</link>
      <description>&lt;P&gt;Hi, this is te table (a portion of it):&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;id_Estacion&lt;/TD&gt;&lt;TD&gt;Fecha&lt;/TD&gt;&lt;TD&gt;id_Campaña&lt;/TD&gt;&lt;TD&gt;Precipitacion (mm)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;87540&lt;/TD&gt;&lt;TD&gt;2/9/2010&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;87540&lt;/TD&gt;&lt;TD&gt;18/3/2010&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;52&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;87540&lt;/TD&gt;&lt;TD&gt;2/2/2010&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;87540&lt;/TD&gt;&lt;TD&gt;18/2/2010&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;87540&lt;/TD&gt;&lt;TD&gt;28/10/2010&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;87540&lt;/TD&gt;&lt;TD&gt;12/4/2010&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is the output format:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Id_Estacion&lt;/TD&gt;&lt;TD&gt;Año&lt;/TD&gt;&lt;TD&gt;Precipitaciones (mm)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8754&lt;/TD&gt;&lt;TD&gt;2010&lt;/TD&gt;&lt;TD&gt;588&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8754&lt;/TD&gt;&lt;TD&gt;2011&lt;/TD&gt;&lt;TD&gt;893&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8456&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;1236&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 27 Dec 2022 20:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990735#M100606</guid>
      <dc:creator>ManucruzGR</dc:creator>
      <dc:date>2022-12-27T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Consulta suma con filtros (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990740#M100608</link>
      <description>&lt;P&gt;Update the source step in the code below.&amp;nbsp;&lt;BR /&gt;Does this work?&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Xc3BCQAxCETRXjwHHI0SU0uw/zaSva1ehIHH9xyK5QYahM1QVsg3TN5ZQTl+YLJEAa4VaC84OuiFCgSsFVgrGEt9MZ0yLw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [id_Estacion = _t, Fecha = _t, id_Campaña = _t, #"Precipitacion (mm)" = _t]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"id_Estacion", Int64.Type}, {"Fecha", type date}, {"id_Campaña", Int64.Type}, {"Precipitacion (mm)", Int64.Type}}),&lt;BR /&gt;#"Inserted Year" = Table.AddColumn(#"Changed Type", "Year", each Date.Year([Fecha]), Int64.Type),&lt;BR /&gt;#"Grouped Rows" = Table.Group(#"Inserted Year", {"id_Estacion", "Year"}, {{"Rainfall (mm)", each List.Sum([#"Precipitacion (mm)"]), type nullable number}})&lt;BR /&gt;in&lt;BR /&gt;#"Grouped Rows"&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 21:10:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990740#M100608</guid>
      <dc:creator>adudani</dc:creator>
      <dc:date>2022-12-27T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Consulta suma con filtros (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990826#M100614</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="491628" data-lia-user-login="ManucruzGR" class="lia-mention lia-mention-user"&gt;ManucruzGR&lt;/a&gt;&amp;nbsp; if this resolves the query please accept it as the solution so others can access it faster. Thanks !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 23:25:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2990826#M100614</guid>
      <dc:creator>adudani</dc:creator>
      <dc:date>2022-12-27T23:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Consulta suma con filtros (?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2991010#M100634</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="491628" data-lia-user-login="ManucruzGR" class="lia-mention lia-mention-user"&gt;ManucruzGR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can put the following code in Advanced Editor in power query as a example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bc7RCcAgDATQXfwWkpxJtbNI91+jaqk10p9w8LhwtYaSTUMMoJPAwi2qtJNLuOLURFIcG1YGwSt7HWXIPwsTvKt3kDpO9rDa8Q0vPcp4t+o7fDLYl+E0bbqV+7DrBg==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [d_Estacion = _t, Fecha = _t, id_Campaña = _t, #"Precipitacion (mm)" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"d_Estacion", Int64.Type}, {"Fecha", type date}, {"id_Campaña", Int64.Type}, {"Precipitacion (mm)", Int64.Type}}),
    #"Extracted Year" = Table.TransformColumns(#"Changed Type",{{"Fecha", Date.Year, Int64.Type}}),
    #"Grouped Rows" = Table.Group(#"Extracted Year", {"d_Estacion", "Fecha"}, {{"Sum", each List.Sum([#"Precipitacion (mm)"]), type nullable number}})
in
    #"Grouped Rows"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps, then please consider&amp;nbsp;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 02:57:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Consulta-suma-con-filtros/m-p/2991010#M100634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-28T02:57:49Z</dc:date>
    </item>
  </channel>
</rss>

