<?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 DAX help with data buckets in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-data-buckets/m-p/3657744#M141726</link>
    <description>&lt;P&gt;I have a Power BI report that is sourced from an SSAS model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an alert table that is at the device level and has a record for each alert from a device.&lt;/P&gt;&lt;P&gt;I have these measures:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;A count of the average number of devices that send an alert in the given date range (defined by a date slicer in the report)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;An average percentage of the number of devices that send an alert in the given date range&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Percent buckets (a switch statement to assign a bucket to the above measure, 0-25, 25-50, 50-75, 75-100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that holds the device informaton which has an inactive bi-directional relationship with the alert table.&lt;/P&gt;&lt;P&gt;My final table is a mapping of device to customer which has a bi-directional relationship to the device table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is have a chart/table that shows the number of customers that fall into each percentage bucket.&amp;nbsp; For example, customer A had 35% of its devices send an alert in the given date range, so it would be in the 25-50 bucket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure for the customer count which does a distinct count of customers from the customer table, and I use the inactive relationship between the alert and device tables.&amp;nbsp; This gets me the total count that I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I create a table with the percentage bucket, customer number and customer count the data is displaying correctly.&amp;nbsp; Obviously, with the customer number in there the customer count is 1 for every record.&amp;nbsp; When I remove the customer count the table shows only the lowest percent bucket, 0-25, and shows the total count for the customer count measure.&amp;nbsp; It does not "group" the accounts by the percentage buckets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any help on this is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 17:16:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-24T17:16:48Z</dc:date>
    <item>
      <title>DAX help with data buckets</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-data-buckets/m-p/3657744#M141726</link>
      <description>&lt;P&gt;I have a Power BI report that is sourced from an SSAS model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an alert table that is at the device level and has a record for each alert from a device.&lt;/P&gt;&lt;P&gt;I have these measures:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;A count of the average number of devices that send an alert in the given date range (defined by a date slicer in the report)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;An average percentage of the number of devices that send an alert in the given date range&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Percent buckets (a switch statement to assign a bucket to the above measure, 0-25, 25-50, 50-75, 75-100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that holds the device informaton which has an inactive bi-directional relationship with the alert table.&lt;/P&gt;&lt;P&gt;My final table is a mapping of device to customer which has a bi-directional relationship to the device table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is have a chart/table that shows the number of customers that fall into each percentage bucket.&amp;nbsp; For example, customer A had 35% of its devices send an alert in the given date range, so it would be in the 25-50 bucket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure for the customer count which does a distinct count of customers from the customer table, and I use the inactive relationship between the alert and device tables.&amp;nbsp; This gets me the total count that I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I create a table with the percentage bucket, customer number and customer count the data is displaying correctly.&amp;nbsp; Obviously, with the customer number in there the customer count is 1 for every record.&amp;nbsp; When I remove the customer count the table shows only the lowest percent bucket, 0-25, and shows the total count for the customer count measure.&amp;nbsp; It does not "group" the accounts by the percentage buckets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any help on this is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:16:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-data-buckets/m-p/3657744#M141726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-24T17:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX help with data buckets</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-data-buckets/m-p/3658371#M141746</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 01:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-help-with-data-buckets/m-p/3658371#M141746</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-01-25T01:00:07Z</dc:date>
    </item>
  </channel>
</rss>

