<?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 Calculate average time by selected filters and show in bar graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-time-by-selected-filters-and-show-in-bar-graph/m-p/3281488#M157269</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I need additional help regarding my latest report:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/LookupValue-or-Calculate-with-two-two-criterias/m-p/3229066#M1085651" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Desktop/LookupValue-or-Calculate-with-two-two-criterias/m-...&lt;/A&gt;&lt;BR /&gt;I like to ask you to help me again, building a chart with these measures I have already created.&lt;/P&gt;&lt;P&gt;I like to use filters and the chart should show the average process time for all orders wich are selected by the filter.&lt;/P&gt;&lt;P&gt;So to calculate the average time of each process step (in this case step 'Anlage der Mappe'), I use an additional measure with this code:&lt;/P&gt;&lt;PRE&gt;Durchschnittlich Anlage der Mappe pro CHANGE_STATUS = AVERAGEX( KEEPFILTERS(VALUES('T_PAC_HIS'[CHANGE_STATUS])), CALCULATE([Anlage der Mappe])) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is only first item selected, the table shows process time, the graph uses avarage process time measures:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are both items selected, but table doesnt show average:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second problem is, that I cannot get the process steps into the y-axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me again, please?&lt;BR /&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 11:09:31 GMT</pubDate>
    <dc:creator>Tobias6</dc:creator>
    <dc:date>2023-06-13T11:09:31Z</dc:date>
    <item>
      <title>Calculate average time by selected filters and show in bar graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-time-by-selected-filters-and-show-in-bar-graph/m-p/3281488#M157269</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I need additional help regarding my latest report:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/LookupValue-or-Calculate-with-two-two-criterias/m-p/3229066#M1085651" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Desktop/LookupValue-or-Calculate-with-two-two-criterias/m-...&lt;/A&gt;&lt;BR /&gt;I like to ask you to help me again, building a chart with these measures I have already created.&lt;/P&gt;&lt;P&gt;I like to use filters and the chart should show the average process time for all orders wich are selected by the filter.&lt;/P&gt;&lt;P&gt;So to calculate the average time of each process step (in this case step 'Anlage der Mappe'), I use an additional measure with this code:&lt;/P&gt;&lt;PRE&gt;Durchschnittlich Anlage der Mappe pro CHANGE_STATUS = AVERAGEX( KEEPFILTERS(VALUES('T_PAC_HIS'[CHANGE_STATUS])), CALCULATE([Anlage der Mappe])) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is only first item selected, the table shows process time, the graph uses avarage process time measures:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are both items selected, but table doesnt show average:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second problem is, that I cannot get the process steps into the y-axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me again, please?&lt;BR /&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 11:09:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-time-by-selected-filters-and-show-in-bar-graph/m-p/3281488#M157269</guid>
      <dc:creator>Tobias6</dc:creator>
      <dc:date>2023-06-13T11:09:31Z</dc:date>
    </item>
  </channel>
</rss>

