<?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: ESTADO DE PRODUCTO PRESTADO (DEVUELTO O ENTREGADO Y NO DEVUELTO?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3051752#M105139</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="391272" data-lia-user-login="Manuu_108" class="lia-mention lia-mention-user"&gt;Manuu_108&lt;/a&gt; , Create a product dimension and join with both columns, one join will inactive. Create measure for the not blank count. refer termination example in the link &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use userelationship to activate inactive join&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi" target="_blank"&gt;https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 05:43:27 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-01-31T05:43:27Z</dc:date>
    <item>
      <title>ESTADO DE PRODUCTO PRESTADO (DEVUELTO O ENTREGADO Y NO DEVUELTO?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3051696#M105132</link>
      <description>&lt;P&gt;Buenas noches, me surge una cuestion con esta herramienta de Power Bi.&lt;/P&gt;&lt;P&gt;Es una tabla que muestra productos que se entregaron y que deben ser devueltas en todo caso si no se devolvio mediante un filtro ver con quien se encuentra el producto. (Como se muestra el resultado de Sofia)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Ejemplo:&lt;/P&gt;&lt;P&gt;En el caso de Ana Maria quedaria saldado ya que se le entrego el 27/01 y devolvió el 31/01. Pero en el caso de Sofia se le entregó el 31/01 y devolvió el MISMO DIA, luego mas tarde (el mismo día) se volvio a entregar el mismo producto pero no devolvio por lo cual quedaria como producto pendiente a devolver.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 04:51:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3051696#M105132</guid>
      <dc:creator>Manuu_108</dc:creator>
      <dc:date>2023-01-31T04:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: ESTADO DE PRODUCTO PRESTADO (DEVUELTO O ENTREGADO Y NO DEVUELTO?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3051752#M105139</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="391272" data-lia-user-login="Manuu_108" class="lia-mention lia-mention-user"&gt;Manuu_108&lt;/a&gt; , Create a product dimension and join with both columns, one join will inactive. Create measure for the not blank count. refer termination example in the link &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use userelationship to activate inactive join&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi" target="_blank"&gt;https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 05:43:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3051752#M105139</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-31T05:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: ESTADO DE PRODUCTO PRESTADO (DEVUELTO O ENTREGADO Y NO DEVUELTO?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3054374#M105312</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="391272" data-lia-user-login="Manuu_108" class="lia-mention lia-mention-user"&gt;Manuu_108&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Go to Power Query – select the yellow marker for [Nombre] – Sort Ascending. .&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Add Column – Index Column – From 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _max=
MAXX(FILTER(ALL('Table'),
'Table'[Nombre]=EARLIER('Table'[Nombre])),[Index])
var _en=
COUNTX(FILTER(ALL('Table'),'Table'[Nombre]=EARLIER('Table'[Nombre])&amp;amp;&amp;amp;'Table'[Index]&amp;lt;=_max),[Product Entregado])
var _de=
MAXX(FILTER(ALL('Table'),
[Index]=_max),[Producto devuelto])
VAR _MAXEN=
MAXX(FILTER(ALL('Table'),
[Index]=_max),[Product Entregado])
return
IF(
    _en&amp;lt;&amp;gt;BLANK()&amp;amp;&amp;amp;_de&amp;lt;&amp;gt;BLANK(),
    [Nombre] &amp;amp;" "&amp;amp;"it would be settled"
    ,
    [Nombre] &amp;amp;" "&amp;amp;"QUDEA PENDIENTE DE DEVOLUCION DEL PRODUCTO" &amp;amp;" "&amp;amp;_MAXEN
    )&lt;/LI-CODE&gt;
&lt;P&gt;4. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 06:21:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3054374#M105312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-01T06:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: ESTADO DE PRODUCTO PRESTADO (DEVUELTO O ENTREGADO Y NO DEVUELTO?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3061554#M105820</link>
      <description>&lt;P&gt;Esta es la tabla correcta y como deberia quedar la tabla&lt;BR /&gt;Envio archivo del ejemplo.&lt;BR /&gt;&lt;img /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1MNgniQk2oy06xTWsExNNOMieS18A89_1/edit?usp=sharing&amp;amp;ouid=111859257495716223600&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1MNgniQk2oy06xTWsExNNOMieS18A89_1/edit?usp=sharing&amp;amp;ouid=111859257495716223600&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 15:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ESTADO-DE-PRODUCTO-PRESTADO-DEVUELTO-O-ENTREGADO-Y-NO-DEVUELTO/m-p/3061554#M105820</guid>
      <dc:creator>Manuu_108</dc:creator>
      <dc:date>2023-02-04T15:55:37Z</dc:date>
    </item>
  </channel>
</rss>

