<?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: Calculating Stores by Transaction Range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/1999033#M44379</link>
    <description>&lt;P&gt;create a dimension table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;and create a measure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 03:15:43 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2021-08-05T03:15:43Z</dc:date>
    <item>
      <title>Calculating Stores by Transaction Range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/1998730#M44369</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask for help on the following problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an excel database which have the total number of transactions per store and date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, i summarize the total number of transactions per store on power bi through the measure sum(transactions).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generating this visual:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then, I want to count how many stores have more then 100 transactions and how many have equal or less to 100 transactions. Getting a visual like this (i did in excel just as an example):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find all the files (.pbix and excel) on the link below for better visualization and analysis:&lt;/P&gt;&lt;P&gt;&lt;A title="Files" href="https://drive.google.com/drive/folders/1rnX5Sgp4S2WpS3E_XC4345frbw94XWrl?usp=sharing" target="_self"&gt;Files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 00:15:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/1998730#M44369</guid>
      <dc:creator>joaopalhares</dc:creator>
      <dc:date>2021-08-05T00:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Stores by Transaction Range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/1999033#M44379</link>
      <description>&lt;P&gt;create a dimension table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;and create a measure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 03:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/1999033#M44379</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-08-05T03:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Stores by Transaction Range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/1999052#M44382</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;More than 100 : =&lt;/STRONG&gt; &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;VAR _newtable =&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;ADDCOLUMNS ( VALUES ( Sheet1[Store] ), "@transactions", [Total Transactions] )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;COUNTROWS ( FILTER ( _newtable, [@transactions] &amp;gt; 100 ) )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;Equal or less than 100 : = &lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;VAR _newtable =&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;ADDCOLUMNS ( VALUES ( Sheet1[Store] ), "@transactions", [Total Transactions] )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;COUNTROWS ( FILTER ( _newtable, [@transactions] &amp;lt;= 100 ) )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/s/l4o6xpvdiswm07r/report_sample.pbix?dl=0" target="_self"&gt;Link to the sample pbix file&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Aug 2021 03:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/1999052#M44382</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-08-05T03:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Stores by Transaction Range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2000738#M44416</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="225330" data-lia-user-login="JihwanKim" class="lia-mention lia-mention-user"&gt;JihwanKim&lt;/a&gt;&amp;nbsp;. Thank you for the support given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked really nice. I've tried both ways, the one provided by you and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is one other thing i would like your help to evaluate if it is possible:&lt;BR /&gt;&lt;BR /&gt;Is it possible to, when i select (press) the number of stores count to filter the other table?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For instance, when i click the number 1 (more than 100) to filter the other table showing only store B.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help would be awesome. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated files on the link below.&lt;/P&gt;&lt;P&gt;&lt;A title="Updated Files" href="https://drive.google.com/drive/folders/1KfIWWXjkDVx4adMFR4dfPkqXhbqyqtVP?usp=sharing" target="_self"&gt;Updated Files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 17:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2000738#M44416</guid>
      <dc:creator>joaopalhares</dc:creator>
      <dc:date>2021-08-05T17:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Stores by Transaction Range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2000739#M44417</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;wdx223_daniel&amp;nbsp;. Thank you for the support given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked really nice. I've tried both ways, the one provided by you and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is one other thing i would like your help to evaluate if it is possible:&lt;BR /&gt;&lt;BR /&gt;Is it possible to, when i select (press) the number of stores count to filter the other table?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For instance, when i click the number 1 (more than 100) to filter the other table showing only store B.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help would be awesome. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated files on the link below.&lt;/P&gt;&lt;P&gt;&lt;A title="Updated Files" href="https://drive.google.com/drive/folders/1KfIWWXjkDVx4adMFR4dfPkqXhbqyqtVP?usp=sharing" target="_self"&gt;Updated Files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 17:13:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2000739#M44417</guid>
      <dc:creator>joaopalhares</dc:creator>
      <dc:date>2021-08-05T17:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Stores by Transaction Range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2001126#M44434</link>
      <description>&lt;P&gt;add a new column in table of sheet1&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;and, create a relationship between the new column to dimTable&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;then change the measure code of StoreCount to&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 00:22:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2001126#M44434</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-08-06T00:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Stores by Transaction Range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2001134#M44436</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 00:40:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Stores-by-Transaction-Range/m-p/2001134#M44436</guid>
      <dc:creator>joaopalhares</dc:creator>
      <dc:date>2021-08-06T00:40:45Z</dc:date>
    </item>
  </channel>
</rss>

