<?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 Down-days per month without explicit rows for every month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Down-days-per-month-without-explicit-rows-for-every-month/m-p/3372069#M126913</link>
    <description>&lt;P&gt;Hi community!&lt;BR /&gt;&lt;BR /&gt;I'm going to get straight to the point. The issues I'm having is that I have a table that shows down-days for different types of equipment/machinery, meaning days on which the machine was out of order for one reason or another. The table is set up in such a way that it contains the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;ID of the machine&lt;/STRONG&gt; (a unique identifier).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Type of machine.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Date on which the machine went out of order.&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Date on which the machine was reinstated.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Off-days in the initial error month&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Off-days in the month it was reinstated&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Off-days in months between the start- and end month (if applicable)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is create a visualization that shows the total number of down days for a given period, on which you're able to slice by both month/year, machine and/or machine type. The only way I can currently think of doing this is creating a table that contains an try for every machine every month and how many down days they have in the given month. As far as I can tell, this should be possible, but it seems to be to be a very messy solution, and I feel like it should be doable with a measure/measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if the issues / description is unclear, and please don't hesitate to ask for clarification or additional information. Unfortunately, I am not able to share a .pbix file, as the data contained is confidential, so I'll have to describe it as best I can.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 11:17:38 GMT</pubDate>
    <dc:creator>FMPE</dc:creator>
    <dc:date>2023-08-09T11:17:38Z</dc:date>
    <item>
      <title>Down-days per month without explicit rows for every month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Down-days-per-month-without-explicit-rows-for-every-month/m-p/3372069#M126913</link>
      <description>&lt;P&gt;Hi community!&lt;BR /&gt;&lt;BR /&gt;I'm going to get straight to the point. The issues I'm having is that I have a table that shows down-days for different types of equipment/machinery, meaning days on which the machine was out of order for one reason or another. The table is set up in such a way that it contains the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;ID of the machine&lt;/STRONG&gt; (a unique identifier).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Type of machine.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Date on which the machine went out of order.&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Date on which the machine was reinstated.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Off-days in the initial error month&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Off-days in the month it was reinstated&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Off-days in months between the start- and end month (if applicable)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is create a visualization that shows the total number of down days for a given period, on which you're able to slice by both month/year, machine and/or machine type. The only way I can currently think of doing this is creating a table that contains an try for every machine every month and how many down days they have in the given month. As far as I can tell, this should be possible, but it seems to be to be a very messy solution, and I feel like it should be doable with a measure/measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if the issues / description is unclear, and please don't hesitate to ask for clarification or additional information. Unfortunately, I am not able to share a .pbix file, as the data contained is confidential, so I'll have to describe it as best I can.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 11:17:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Down-days-per-month-without-explicit-rows-for-every-month/m-p/3372069#M126913</guid>
      <dc:creator>FMPE</dc:creator>
      <dc:date>2023-08-09T11:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Down-days per month without explicit rows for every month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Down-days-per-month-without-explicit-rows-for-every-month/m-p/3372130#M126920</link>
      <description>&lt;P&gt;Okay, I think I partly understand the issues I'm having now, and potentially how I might solve it, although I am still not sure how to get there. I think the issues I'm having stems from the fact that my calendar table, by which I slice, is connected via relation to the&amp;nbsp;&lt;STRONG&gt;error start date&lt;/STRONG&gt;, i.e. the day on which the error started.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason that that relation is causing issues is in the cases where an error period covers multiple months, e.g:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; TYPE&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; ERROR FROM&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; ERROR TO&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TR420&lt;/TD&gt;&lt;TD&gt;Trailer&lt;/TD&gt;&lt;TD&gt;20/01/2023&lt;/TD&gt;&lt;TD&gt;03/03/2023&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm filtering by month to see the error days per month, I'll&amp;nbsp;&lt;EM&gt;only&lt;/EM&gt; be shown the number of error days from month in which the period started, as the remaining days are "sliced off".&lt;BR /&gt;&lt;BR /&gt;I'm thinking of solving this by expanding the table so an error period like the one previously mentioned would we split into three seperate rows like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; TYPE&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; ERROR FROM&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; ERROR TO&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TR420&lt;/TD&gt;&lt;TD&gt;Trailer&lt;/TD&gt;&lt;TD&gt;20/01/2023&lt;/TD&gt;&lt;TD&gt;31/01/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TR420&lt;/TD&gt;&lt;TD&gt;Trailer&lt;/TD&gt;&lt;TD&gt;01/02/2023&lt;/TD&gt;&lt;TD&gt;28/02/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TR420&lt;/TD&gt;&lt;TD&gt;Trailer&lt;/TD&gt;&lt;TD&gt;01/03/2023&lt;/TD&gt;&lt;TD&gt;03/03/2023&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I'm still not where whether this is the best solution, or indeed feasible to do so, so please do let me know whether this approach is appropriate and, if so, how I might go about implementing it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 12:18:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Down-days-per-month-without-explicit-rows-for-every-month/m-p/3372130#M126920</guid>
      <dc:creator>FMPE</dc:creator>
      <dc:date>2023-08-09T12:18:38Z</dc:date>
    </item>
  </channel>
</rss>

