<?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: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495817#M68835</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="105173" data-lia-user-login="jrscaletta" class="lia-mention lia-mention-user"&gt;jrscaletta&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you trying to calculate?&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 10:50:41 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-05-05T10:50:41Z</dc:date>
    <item>
      <title>Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495697#M68827</link>
      <description>&lt;P&gt;Hi!!&amp;nbsp; obtain an error comparing "TEXT" vs "INT", but I'm using FORMAT too, I don't understand. I want this measure returns weighted average by date,,, ideas? Thanks you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Weighted Average by Date =
FORMAT(
SUMX(
FILTER(MOVIGRANJ, MOVIGRANJ[MovementType] = 3 &amp;amp; MOVIGRANJ[ArticleType] = 1),
MOVIGRANJ[Date].[Date]*MOVIGRANJ[AnimalsNumber]/MOVIGRANJ[AnimalsNumber]),
"General Date")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 09:53:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495697#M68827</guid>
      <dc:creator>jrscaletta</dc:creator>
      <dc:date>2022-05-05T09:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495786#M68831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="105173" data-lia-user-login="jrscaletta" class="lia-mention lia-mention-user"&gt;jrscaletta&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;A small mistake&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 10:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495786#M68831</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T10:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495802#M68833</link>
      <description>&lt;P&gt;Thnanks you very much! Now it works, but the result isn't correct, I obtain date "10/8/2143", when my most recent date is "02/05/2022"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideas? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 10:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495802#M68833</guid>
      <dc:creator>jrscaletta</dc:creator>
      <dc:date>2022-05-05T10:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495817#M68835</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="105173" data-lia-user-login="jrscaletta" class="lia-mention lia-mention-user"&gt;jrscaletta&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you trying to calculate?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 10:50:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495817#M68835</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495826#M68836</link>
      <description>&lt;P&gt;Hi tamerj1!! Thanks for your reply!&lt;/P&gt;&lt;P&gt;I want to calculte the average date ponderated by AnimalsNum with criteria.&lt;/P&gt;&lt;P&gt;All my movements are on the MOVIGRANJ table (date too).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 important fields for this:&lt;BR /&gt;- DATE (Date)&lt;/P&gt;&lt;P&gt;- NUM ANIMALS (Integer)&lt;/P&gt;&lt;P&gt;- MOVEMENTTYPE (Integer)&lt;/P&gt;&lt;P&gt;- ARTICLETYPE -or product- (Integer)&lt;/P&gt;&lt;P&gt;- FARM (integer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate&amp;nbsp;the average date ponderated by AnimalsNum with criteria on fields "MOVEMENTTYPE = 3" and "ARTICLETYPE = 1".&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 10:56:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495826#M68836</guid>
      <dc:creator>jrscaletta</dc:creator>
      <dc:date>2022-05-05T10:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495835#M68839</link>
      <description>&lt;P&gt;Can you share screenshot of your source data table or provide sample data?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 11:05:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495835#M68839</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T11:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495847#M68840</link>
      <description>&lt;P&gt;Hi Tamerj1! Thanks you again, now I'm understand your budget of Community Champion&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file:&amp;nbsp;&lt;A href="https://we.tl/t-38IudN69ZO" target="_blank"&gt;&lt;SPAN&gt;https://we.tl/t-38IudN69ZO&lt;/SPAN&gt; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see "Fecha entrada ponderada" and "Fecha salida ponderada" is not logical result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 11:11:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495847#M68840</guid>
      <dc:creator>jrscaletta</dc:creator>
      <dc:date>2022-05-05T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495897#M68843</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="105173" data-lia-user-login="jrscaletta" class="lia-mention lia-mention-user"&gt;jrscaletta&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apperantly this is something else. I need all the details. Please share a sample file to work with.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 11:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495897#M68843</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T11:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495927#M68849</link>
      <description>&lt;P&gt;Hi Tamerj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach basic and easy compensive sample file. Thanks! &lt;STRONG&gt;Download file (By Wetransfer):&amp;nbsp;&lt;A href="https://we.tl/t-0NhKxNu8Ql" target="_self"&gt;&lt;SPAN&gt;https://we.tl/t-0NhKxNu8Ql&lt;/SPAN&gt; &lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As you can see, the weighted average date is not correct. It shows 2045 year!! My data is all 2022.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 11:59:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2495927#M68849</guid>
      <dc:creator>jrscaletta</dc:creator>
      <dc:date>2022-05-05T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2496000#M68855</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="105173" data-lia-user-login="jrscaletta" class="lia-mention lia-mention-user"&gt;jrscaletta&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can use&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Weighted Averaged Date Movement type 1 = 
FORMAT (
    SUMX (
        FILTER ( Hoja1, Hoja1[MovementType] = 1 &amp;amp;&amp;amp; Hoja1[ArticleType] = 1 ),
        Hoja1[Date] * Hoja1[AnimalsNumber]
    ) / [AnimalsMovementType1],
    "General Date" 
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 12:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2496000#M68855</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing TEXT vs INT not allowed.. but I'm using FORMAT!!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2496010#M68856</link>
      <description>&lt;P&gt;It works!!! Thanks you so much for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 12:29:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-TEXT-vs-INT-not-allowed-but-I-m-using-FORMAT/m-p/2496010#M68856</guid>
      <dc:creator>jrscaletta</dc:creator>
      <dc:date>2022-05-05T12:29:22Z</dc:date>
    </item>
  </channel>
</rss>

