<?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: Power BI Matrix Per Hour Overview in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4007970#M157166</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think you can use the VAR function to write the variables one by one, here is the DAX code you can try.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Utilization % =
VAR TotalRidersPerHour =
    SUM ( 'RidershipEvents'[CumulativeRiders] )
VAR TotalCapacityPerHour =
    SUM ( 'Ride'[Capacity] )
RETURN
    DIVIDE ( TotalRidersPerHour, TotalCapacityPerHour, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;If this code doesn't work you can provide me more information or your .pbix file.&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;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 01:44:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-25T01:44:41Z</dc:date>
    <item>
      <title>Power BI Matrix Per Hour Overview</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4007576#M157007</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;I have 2 matrices I need to create:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Matrix showing Utilization % per Ride per weekday&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Matrix showing Total Utilization % per hour per weeekday&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;The ride data is in the Ridership Events table and the Capacity data is in the Ride table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I created a calculation for the first Matrix and it works with the data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I am having is with the second Matrix per hour. When I click on the first matrix for a specific ride, then the second matrix changes accordingly to the correct values per hour when it was&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Util% = DIVIDE(SUM('RidershipEvents'[CumulativeRiders]), SUM('Ride'[Capacity]), 0)&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;utilized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;The problem lies in the overview of the second Matrix. When I open the Power BI file with no filters placed, the data is showing percentages well over 100%. I believe the Matrix is calculating the total percentages per hour, for example: (50% + 30% + 80% = 160%)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Instead, it should be calculating (Total Cumulative Riders/ Total Capacity), for example: (350/400 = 87.5%&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I think the second matrix needs a different DAX calculation for Utilization % that takes total riders per hour and divides total possible riders per hour. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Can anyone help with this issue?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 18:29:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4007576#M157007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T18:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Matrix Per Hour Overview</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4007970#M157166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think you can use the VAR function to write the variables one by one, here is the DAX code you can try.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Utilization % =
VAR TotalRidersPerHour =
    SUM ( 'RidershipEvents'[CumulativeRiders] )
VAR TotalCapacityPerHour =
    SUM ( 'Ride'[Capacity] )
RETURN
    DIVIDE ( TotalRidersPerHour, TotalCapacityPerHour, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;If this code doesn't work you can provide me more information or your .pbix file.&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;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 01:44:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4007970#M157166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T01:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Matrix Per Hour Overview</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4009454#M157674</link>
      <description>&lt;P&gt;No, This gives me the same percentage error. I think time needs to be added in the DAX calculation. The formula is counting every percentage instead of every cumulative rider divided by total capacity&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:02:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4009454#M157674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T16:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Matrix Per Hour Overview</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4010573#M157822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think I'm missing your point probably because I don't have a complete view of the data in your table. If you can provide me with specific data from the table, I will look into your question further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Per-Hour-Overview/m-p/4010573#M157822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T06:50:14Z</dc:date>
    </item>
  </channel>
</rss>

