<?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: Measure: show dcount as % by date hierarchy in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-show-dcount-as-by-date-hierarchy/m-p/1541457#M30360</link>
    <description>&lt;P&gt;I now understand that my model is incorrect, but we are using excel reports generated by SAP and other APP as origin data bases, so tables in the reports are very big in both rows and columns, I am currently using 3 fact tables with no dim tables, i added an extra date table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All 3 tables we are using are fact tables, and inside each of them is data (ID keys (DIM) and description (FACT)) from other SAP tables which we dont have access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to restructure my model, does this means i would need to split my big tables into small dim ones??&lt;/P&gt;&lt;P&gt;Do you have any tips or recomendations on how to do this inside BI? or how to put together a star schema with multiple fact tables?&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im Sorry for the trouble but i am recently starting and i cant manage to do this first.&lt;/P&gt;&lt;P&gt;Any recomended resources i can check on data modelling? or POwer bi Trainings?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 18:12:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-09T18:12:24Z</dc:date>
    <item>
      <title>Measure: show dcount as % by date hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-show-dcount-as-by-date-hierarchy/m-p/1535350#M30160</link>
      <description>&lt;P&gt;Hey everyone, i've just started in power bi and im having trouble with some calculations, for starters i just nee to calculate and graph the On Time KPI foe my company deliveries.&lt;/P&gt;&lt;P&gt;I have scheduled delivery date and time with low and high limits as first set of data, an then i have the real delivery date and time, everything identified by a unique delivery ID.&lt;/P&gt;&lt;P&gt;I basically need to calculate compliance % in 3 levels (Early, on time, and late) and graph them by date hierarchy.&lt;/P&gt;&lt;P&gt;My data structure is as follows:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Guide&lt;/TD&gt;&lt;TD&gt;Min Time of Arrival&lt;/TD&gt;&lt;TD&gt;Max Time of Arrival&lt;/TD&gt;&lt;TD&gt;Arrival Time&lt;/TD&gt;&lt;TD&gt;On Time&lt;/TD&gt;&lt;TD&gt;On Time (groups)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12345&lt;/TD&gt;&lt;TD&gt;11/11/2020 06:00&lt;/TD&gt;&lt;TD&gt;11/11/2020 07:00&lt;/TD&gt;&lt;TD&gt;11/11/2020 05:00&lt;/TD&gt;&lt;TD&gt;Early&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;On Time&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23456&lt;/TD&gt;&lt;TD&gt;11/11/2020 06:00&lt;/TD&gt;&lt;TD&gt;11/11/2020 07:00&lt;/TD&gt;&lt;TD&gt;11/11/2020 06:30&lt;/TD&gt;&lt;TD&gt;On Time&lt;/TD&gt;&lt;TD&gt;On Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;34567&lt;/TD&gt;&lt;TD&gt;11/11/2020 06:00&lt;/TD&gt;&lt;TD&gt;11/11/2020 07:00&lt;/TD&gt;&lt;TD&gt;11/11/2020 14:00&lt;/TD&gt;&lt;TD&gt;Late&lt;/TD&gt;&lt;TD&gt;Late&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;On Time - Column is the result of the following calculation: (which i added in Power Query using M while transfoirming my data)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= Table.AddColumn(#"Extract - Hora Creación", "On Time", each if [Tiempo Llegada] &amp;lt; [Tiempo Min Entrega] then "Anticipado" else if [Tiempo Llegada] &amp;gt; [Tiempo Max Entrega] then "Retraso" else "On Time") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;On Time (groups) - just groups early and on time for practical purposes my company considers both as acceptable, so if the sum of both is greater than 70% everything is ok.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following dax formula for the measure im trying to graph and it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;On Time KPI = CALCULATE(COUNT(Beetrack[On Time]),ALLEXCEPT(Beetrack,Beetrack[Tiempo min entrega].[Día],Beetrack[On Time])) / CALCULATE(COUNT(Beetrack[On Time]),ALLEXCEPT(Beetrack,Beetrack[Tiempo min entrega].[Día]))​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem here is the resulting graphs cant be affected by any filter, and cant be drilled down/up by any date hierarchies, so i cant show monthly nor annual nor weekly values. I also cant highligt the same data when i click on other graphs in the dashboard to segment the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to achieve the same calculation dynamically? so i can get the values by date hierarchies? and that the graph is not always static?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 04:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-show-dcount-as-by-date-hierarchy/m-p/1535350#M30160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-07T04:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: show dcount as % by date hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-show-dcount-as-by-date-hierarchy/m-p/1541362#M30347</link>
      <description>&lt;P&gt;Of course, everything is possible... as long as the model is correct. Your model is not. Please read &lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank" rel="noopener"&gt;this&lt;/A&gt; to know how to create such models. Then the calculations and navigation will be a breeze.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I would be very careful using ALLEXCEPT. This is a very deceiving function and you should really understand how it behaves in contexts to use it. Please go to &lt;A href="http://www.sqlbi.com" target="_blank"&gt;www.sqlbi.com&lt;/A&gt;&amp;nbsp;and find the artictle that explains the pitfalls/caveats of the function.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:30:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-show-dcount-as-by-date-hierarchy/m-p/1541362#M30347</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2020-12-09T16:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: show dcount as % by date hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-show-dcount-as-by-date-hierarchy/m-p/1541457#M30360</link>
      <description>&lt;P&gt;I now understand that my model is incorrect, but we are using excel reports generated by SAP and other APP as origin data bases, so tables in the reports are very big in both rows and columns, I am currently using 3 fact tables with no dim tables, i added an extra date table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All 3 tables we are using are fact tables, and inside each of them is data (ID keys (DIM) and description (FACT)) from other SAP tables which we dont have access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to restructure my model, does this means i would need to split my big tables into small dim ones??&lt;/P&gt;&lt;P&gt;Do you have any tips or recomendations on how to do this inside BI? or how to put together a star schema with multiple fact tables?&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im Sorry for the trouble but i am recently starting and i cant manage to do this first.&lt;/P&gt;&lt;P&gt;Any recomended resources i can check on data modelling? or POwer bi Trainings?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 18:12:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-show-dcount-as-by-date-hierarchy/m-p/1541457#M30360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-09T18:12:24Z</dc:date>
    </item>
  </channel>
</rss>

