<?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: How To Use MOD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-To-Use-MOD/m-p/2705787#M82045</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try this measure to create mod measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Mod =
VAR _SUMMAIZRE =
    SUMMARIZE (
        'Table',
        'Table'[Category],
        "Stok Adeti", CALCULATE ( SUM ( 'Table'[Stok Adeti] ) )
    )
VAR _ADD_MOD =
    ADDCOLUMNS ( _SUMMAIZRE, "MOD", MOD ( [Stok Adeti], 4 ) )
RETURN
    SUMX ( _ADD_MOD, [MOD] )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Kalan = SUM('Table'[Stok Adeti]) - [Mod]&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 08:42:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-17T08:42:15Z</dc:date>
    <item>
      <title>How To Use MOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-To-Use-MOD/m-p/2694422#M81226</link>
      <description>&lt;P&gt;Merhabalar, PowerBI konusunda yeniyim ve bir konuda sorun yaşıyorum.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Stok adetlerimi, mod formülü kullanarak "Mod Değeri" sütunumu oluşturdum.&lt;/P&gt;&lt;P&gt;A = MOD(X , 4 , 0.2) =&amp;gt; MOD(395 , 4 , 0,2) =&amp;gt; 3&lt;/P&gt;&lt;P&gt;Ancak bu formülü kullandığım zaman sütun toplamı "0" = "C" geliyor.&lt;/P&gt;&lt;P&gt;Ayrıca "Kalan" sütunu içinde stok adetinden mod değerini çıkarıyorum.&lt;/P&gt;&lt;P&gt;B = X - A =&amp;gt; 395 - 3 = 392&lt;/P&gt;&lt;P&gt;Ancak bu sütununda toplamı hatalı geliyor."Y"&lt;/P&gt;&lt;P&gt;Bu hataların önüne nasıl geçebilirim?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 07:53:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-To-Use-MOD/m-p/2694422#M81226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-11T07:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How To Use MOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-To-Use-MOD/m-p/2698846#M81556</link>
      <description>&lt;P&gt;Merhaba,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what is your expected result for these columns?&amp;nbsp; Do you want to sum up the remainders of the divisions for each row?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the MOD function only accepts two parameters.&amp;nbsp; Not sure what your 0.2&amp;nbsp; is about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/mod-function-dax" target="_blank"&gt;MOD function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 22:59:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-To-Use-MOD/m-p/2698846#M81556</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-13T22:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How To Use MOD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-To-Use-MOD/m-p/2705787#M82045</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try this measure to create mod measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Mod =
VAR _SUMMAIZRE =
    SUMMARIZE (
        'Table',
        'Table'[Category],
        "Stok Adeti", CALCULATE ( SUM ( 'Table'[Stok Adeti] ) )
    )
VAR _ADD_MOD =
    ADDCOLUMNS ( _SUMMAIZRE, "MOD", MOD ( [Stok Adeti], 4 ) )
RETURN
    SUMX ( _ADD_MOD, [MOD] )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Kalan = SUM('Table'[Stok Adeti]) - [Mod]&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 08:42:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-To-Use-MOD/m-p/2705787#M82045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-17T08:42:15Z</dc:date>
    </item>
  </channel>
</rss>

