<?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 How can I show a matrix by day/month, when source date values are in From &amp;gt; To structure in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-show-a-matrix-by-day-month-when-source-date-values-are/m-p/588475#M17951</link>
    <description>&lt;P&gt;So I have some source data which documents "Staff Travel"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format is fairly basic (this has been simplified for the purposes of this post):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Name&lt;/LI&gt;&lt;LI&gt;Date From&lt;/LI&gt;&lt;LI&gt;Date To&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And they want to be able to display this in a Matrix showing who is either "IN" or "OUT" of the office on each day of each month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to do this in Microsoft Excel fairly quickly using a combination of WEEKDAY and COUNTIFS formulas (it even automatically generates the full matrix each month, only shows Mon-Fri, auto-calculates the first week-day of the month and formats them with separators per week).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*However* .. the client has now asked us to build this natively in Power BI - partly for distribution but mainly so that the&amp;nbsp;delivery, style and design of the reportd ties in with their other Power BI based stuff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So .. my question to your good selves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this actually possible? (without a tonne of work)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Challenges&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data is "From" and "To" instead of a fixed date&lt;/LI&gt;&lt;LI&gt;Data needs to be refreshed from a data source (in this case a SharePoint List)&lt;/LI&gt;&lt;LI&gt;We do not have data-points for every single day (only the "out of office" travel data) but we still need to RENDER every single day&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Examples of the data&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;: John Smith | &lt;STRONG&gt;From&lt;/STRONG&gt;: 10/12/2018 | &lt;STRONG&gt;To&lt;/STRONG&gt;: 12/12/2018&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Name:&amp;nbsp;&lt;/STRONG&gt;John Smith |&amp;nbsp;&lt;STRONG&gt;From: &lt;/STRONG&gt;24/12/2018 | &lt;STRONG&gt;To&lt;/STRONG&gt;: 28/12/2018&lt;/LI&gt;&lt;LI&gt;... etc ...&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Example of&amp;nbsp;how I rendered it in Excel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG src="https://ip1.i.lithium.com/0c6141a98157a9716fcea5029efbd6c87cd8ef47/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4475744f5437335867416331574a562e6a70673a6c61726765" border="0" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2018 11:11:37 GMT</pubDate>
    <dc:creator>MartinHatch</dc:creator>
    <dc:date>2018-12-19T11:11:37Z</dc:date>
    <item>
      <title>How can I show a matrix by day/month, when source date values are in From &gt; To structure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-show-a-matrix-by-day-month-when-source-date-values-are/m-p/588475#M17951</link>
      <description>&lt;P&gt;So I have some source data which documents "Staff Travel"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format is fairly basic (this has been simplified for the purposes of this post):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Name&lt;/LI&gt;&lt;LI&gt;Date From&lt;/LI&gt;&lt;LI&gt;Date To&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And they want to be able to display this in a Matrix showing who is either "IN" or "OUT" of the office on each day of each month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to do this in Microsoft Excel fairly quickly using a combination of WEEKDAY and COUNTIFS formulas (it even automatically generates the full matrix each month, only shows Mon-Fri, auto-calculates the first week-day of the month and formats them with separators per week).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*However* .. the client has now asked us to build this natively in Power BI - partly for distribution but mainly so that the&amp;nbsp;delivery, style and design of the reportd ties in with their other Power BI based stuff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So .. my question to your good selves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this actually possible? (without a tonne of work)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Challenges&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data is "From" and "To" instead of a fixed date&lt;/LI&gt;&lt;LI&gt;Data needs to be refreshed from a data source (in this case a SharePoint List)&lt;/LI&gt;&lt;LI&gt;We do not have data-points for every single day (only the "out of office" travel data) but we still need to RENDER every single day&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Examples of the data&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;: John Smith | &lt;STRONG&gt;From&lt;/STRONG&gt;: 10/12/2018 | &lt;STRONG&gt;To&lt;/STRONG&gt;: 12/12/2018&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Name:&amp;nbsp;&lt;/STRONG&gt;John Smith |&amp;nbsp;&lt;STRONG&gt;From: &lt;/STRONG&gt;24/12/2018 | &lt;STRONG&gt;To&lt;/STRONG&gt;: 28/12/2018&lt;/LI&gt;&lt;LI&gt;... etc ...&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Example of&amp;nbsp;how I rendered it in Excel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG src="https://ip1.i.lithium.com/0c6141a98157a9716fcea5029efbd6c87cd8ef47/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4475744f5437335867416331574a562e6a70673a6c61726765" border="0" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 11:11:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-show-a-matrix-by-day-month-when-source-date-values-are/m-p/588475#M17951</guid>
      <dc:creator>MartinHatch</dc:creator>
      <dc:date>2018-12-19T11:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show a matrix by day/month, when source date values are in From &gt; To structure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-can-I-show-a-matrix-by-day-month-when-source-date-values-are/m-p/591336#M18007</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76865"&gt;@MartinHatch&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to drag [Date] from a calendar table to Columns, measure below to Values and&amp;nbsp;&lt;SPAN&gt;apply&amp;nbsp;&lt;/SPAN&gt;&lt;A title="" href="https://docs.microsoft.com/en-us/power-bi/desktop-matrix-visual#shading-and-font-colors-with-matrix-visuals" target="_self" rel="nofollow noopener noreferrer"&gt;Conditional formatting&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Measure =
VAR d =
    SELECTEDVALUE ( 'Calendar'[Date] )
RETURN
    IF (
        d &amp;gt;= SELECTEDVALUE ( Table1[From] )
            &amp;amp;&amp;amp; d &amp;lt;= SELECTEDVALUE ( Table1[To] ),
        "IN",
        "OUT"
    )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 08:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-can-I-show-a-matrix-by-day-month-when-source-date-values-are/m-p/591336#M18007</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2018-12-26T08:34:42Z</dc:date>
    </item>
  </channel>
</rss>

