<?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: Creating Dynamic Segments using DAX in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173594#M75813</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="38" data-lia-user-login="GilbertQ" class="lia-mention lia-mention-user"&gt;GilbertQ&lt;/a&gt;&amp;nbsp;do I just run the same script in the Custom Column?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 02:36:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-11T02:36:01Z</dc:date>
    <item>
      <title>Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/168219#M73481</link>
      <description>&lt;P&gt;Hi everyone.&amp;nbsp;&amp;nbsp;I am trying to create a segmentation based on the members' latency and Average Ticket Value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My segmentation looks something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to know how can I do it in DAX given the data set that I currently have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*edited: With the current data set that I have, it looks something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the ATV that will be used for segmentation, it is derived from the formula: Sum of Sales/Transaction Count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Transaction Count is the distinct count of the transaction ID in the data set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the Latency which is also a factor in the segments, it is the average of the difference of the dates between the transaction of a member based on their card no. on the data set. I was able to get the Latency by the script provided to me previously from this topic:&amp;nbsp;&lt;A href="http://community.powerbi.com/t5/Desktop/Calculating-Date-Difference-between-2-or-more-dates-using-DAX/m-p/162465" target="_blank"&gt;http://community.powerbi.com/t5/Desktop/Calculating-Date-Difference-between-2-or-more-dates-using-DAX/m-p/162465&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And now since I got the Latency, I have to start creating the segments as seen above as the next step to my project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping for your response on this matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 06:36:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/168219#M73481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T06:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/168265#M73496</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;The easiest approach may be just creating a calculated column like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Segment = IF(AND('Table1'[ATV] &amp;gt; 1500, 'Table1'[Latency] &amp;lt; 60), "SEGMENT A",
	IF(AND('Table1'[ATV] &amp;gt; 1500, 'Table1'[Latency]&amp;gt; 60), "SEGMENT B",
		IF(AND('Table1'[ATV] &amp;lt; 1500, 'Table1'[Latency] &amp;lt; 60), "SEGMENT C",
			IF(AND('Table1'[ATV] &amp;lt; 1500, 'Table1'[Latency] &amp;gt; 60), "SEGMENT D",""))))&lt;/PRE&gt;&lt;P&gt;or are you looking for something like &lt;A href="http://www.daxpatterns.com/dynamic-segmentation/" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;article by Marco Russo&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 03:08:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/168265#M73496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-03T03:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/172703#M75454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;, I tried working on the script you gave me last time and I still got this message:&amp;nbsp;&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;I believe my computer is powerful enough for Power BI since it runs on these:&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;Is it really a hardware issue? Or is there something that we need to do on the script? Hope you could help me on this. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 03:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/172703#M75454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T03:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173186#M75637</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;This looks like a hardware issue. Are you running 32 or 64-bit Power BI Desktop?&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.wikihow.com/Check-Computer-RAM" target="_self"&gt;Here&lt;/A&gt; is a quick wiki that will help you determine at least on a high level some RAM issues. But this isn't typically an error that would be produced if the syntax was wrong.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 14:00:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173186#M75637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173556#M75798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;. I'm running on a 64 Bit Power BI Desktop and my pc has 12GB worth of RAM in it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 01:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173556#M75798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T01:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173570#M75805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is a memory error, you could potentially create the column in the Query Editor using the Custom Column? This should make the memory size smaller when loading the data into the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that said I have also found when working with large text files and excel files that the memory consumption in Power BI Desktop is ever increasing. So to resolve this I close down all instances of Power BI Desktop. Then go into my Task Manager and where ever I find&amp;nbsp;BPIDesktop.exe I right click and select End Task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then open the same file again and I am good to go. Might be a possible memory leak?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 02:15:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173570#M75805</guid>
      <dc:creator>GilbertQ</dc:creator>
      <dc:date>2017-05-11T02:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173573#M75807</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;I also tried running my .pbix file in another desktop that runs on a 16GB &amp;nbsp;and I also received the same error.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 02:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173573#M75807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T02:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173594#M75813</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="38" data-lia-user-login="GilbertQ" class="lia-mention lia-mention-user"&gt;GilbertQ&lt;/a&gt;&amp;nbsp;do I just run the same script in the Custom Column?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 02:36:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173594#M75813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T02:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173598#M75816</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="38" data-lia-user-login="GilbertQ" class="lia-mention lia-mention-user"&gt;GilbertQ&lt;/a&gt;&amp;nbsp;I don't think the custom column is going to work for me since my segmentation is mostly based on a measure or a calculated column. And also, I tried re-running the program after clearing up the Power BI.exe in my task manager.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 02:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173598#M75816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T02:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173616#M75822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case you are indeed correct, and that you will have to create it with a measure. And possibly a disconnected table for your banding.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 03:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/173616#M75822</guid>
      <dc:creator>GilbertQ</dc:creator>
      <dc:date>2017-05-11T03:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/174035#M75981</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;I agree with&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="38" data-lia-user-login="GilbertQ" class="lia-mention lia-mention-user"&gt;GilbertQ&lt;/a&gt;&amp;nbsp;your dataset must be pretty large and would require a different approach. The link I shared in the first response contains the outline of how to create a seperate table to achieve the same results.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 13:33:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/174035#M75981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T13:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Segments using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/2541661#M900569</link>
      <description>&lt;P&gt;Hi everyone, I wanted to do a very similar thing. However in my case I would like to classify my users into A and B. If a user visits my website 1 time a month, then it is classified as A, if the users visit more than 1 time a month, then it's B.&lt;/P&gt;&lt;P&gt;How do I create this rule dinamically?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 14:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Creating-Dynamic-Segments-using-DAX/m-p/2541661#M900569</guid>
      <dc:creator>beaoliv123-_</dc:creator>
      <dc:date>2022-05-26T14:36:26Z</dc:date>
    </item>
  </channel>
</rss>

