<?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: Create a dimnesion based on a field to categorize other measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3665365#M142079</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634476" data-lia-user-login="Manudata" class="lia-mention lia-mention-user"&gt;Manudata&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is the solution you need. Create groups in Power BI or Power Query, there are multiple solutions shown here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=D1LO8syugMA" target="_blank"&gt;Create Buckets or Groups with Power Query in Power BI - YouTube&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 05:32:05 GMT</pubDate>
    <dc:creator>talespin</dc:creator>
    <dc:date>2024-01-29T05:32:05Z</dc:date>
    <item>
      <title>Create a dimnesion based on a field to categorize other measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3664968#M142056</link>
      <description>&lt;P&gt;Hello, I am trying to make a visualization and I am unable to find the way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I explain myself with a simple model, where I have a fact table with records of picking harvest jobs, a dimension table with the fruit plantation where the collection was donde and another table with the owners of this plantations.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The field I want to create is a size range field, so that I can make a visualization that tells me for a certain size range, when there are fields, how much has been collected in them.&lt;/P&gt;&lt;P&gt;At the same time, this range field should function as a filter, so that if I click on the range 100-200, in a table where I have the list of plantations, it will tell me which ones they are.&lt;/P&gt;&lt;P&gt;An additional complication is that if I filter for example idfruits, the measurements inside must be dynamic (example with no. owners:&amp;nbsp; After filtering certain idfruits, one owner that I am counting in a range of 1000-2000 when removing certain plantations, I must count him in 100-500 range)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 20:20:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3664968#M142056</guid>
      <dc:creator>Manudata</dc:creator>
      <dc:date>2024-01-28T20:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dimnesion based on a field to categorize other measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3665094#M142067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634476" data-lia-user-login="Manudata" class="lia-mention lia-mention-user"&gt;Manudata&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 01:30:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3665094#M142067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-29T01:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dimnesion based on a field to categorize other measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3665365#M142079</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634476" data-lia-user-login="Manudata" class="lia-mention lia-mention-user"&gt;Manudata&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is the solution you need. Create groups in Power BI or Power Query, there are multiple solutions shown here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=D1LO8syugMA" target="_blank"&gt;Create Buckets or Groups with Power Query in Power BI - YouTube&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 05:32:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3665365#M142079</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-01-29T05:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dimnesion based on a field to categorize other measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3665436#M142081</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;One of ways is having the range_surface table like below.&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;&lt;img /&gt;&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;LI-CODE lang="markup"&gt;Quantity total: = 
VAR _rangetablecondition =
    FILTER (
        d_plantation,
        CALCULATE ( SUM ( d_plantation[surface_size] ) ) &amp;gt;= MIN ( d_rangesurface[min] )
            &amp;amp;&amp;amp; CALCULATE ( SUM ( d_plantation[surface_size] ) ) &amp;lt;= MAX ( d_rangesurface[max] )
    )
RETURN
    CALCULATE ( SUM ( f_harvest[quantity] ), _rangetablecondition )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# plantation: = 
VAR _rangetablecondition =
    FILTER (
        d_plantation,
        CALCULATE ( SUM ( d_plantation[surface_size] ) ) &amp;gt;= MIN ( d_rangesurface[min] )
            &amp;amp;&amp;amp; CALCULATE ( SUM ( d_plantation[surface_size] ) ) &amp;lt;= MAX ( d_rangesurface[max] )
    )
RETURN
    CALCULATE ( COUNTROWS(DISTINCT(d_plantation[idplantation])), _rangetablecondition )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# manager: = 
VAR _rangetablecondition =
    FILTER (
        d_plantation,
        CALCULATE ( SUM ( d_plantation[surface_size] ) ) &amp;gt;= MIN ( d_rangesurface[min] )
            &amp;amp;&amp;amp; CALCULATE ( SUM ( d_plantation[surface_size] ) ) &amp;lt;= MAX ( d_rangesurface[max] )
    )
RETURN
    CALCULATE ( COUNTROWS(DISTINCT(d_plantation[idmanager]) ), _rangetablecondition )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Jan 2024 06:00:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-dimnesion-based-on-a-field-to-categorize-other-measures/m-p/3665436#M142081</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-29T06:00:26Z</dc:date>
    </item>
  </channel>
</rss>

