<?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: How to show all Rows in matrix Even if there is no data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-all-Rows-in-matrix-Even-if-there-is-no-data/m-p/4005974#M156807</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="630902" data-lia-user-login="cboelterGNH" class="lia-mention lia-mention-user"&gt;cboelterGNH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it:&lt;/P&gt;
&lt;P&gt;1. &lt;STRONG&gt;Delete&lt;/STRONG&gt; the relationship between the table 'Fact_Timecards' and 'DepartmentCodes'&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure_ExampleHours =
VAR _code =
    SELECTEDVALUE ( 'DepartmentCodes'[Code] )
RETURN
    CALCULATE (
        SUM ( 'Fact_Timecards'[Example Hours] ),
        FILTER ( 'Fact_Timecards', 'Fact_Timecards'[Home Department-9999XX] = _code )
    )&lt;/LI-CODE&gt;
&lt;P&gt;3. Put the above measure onto the &lt;STRONG&gt;Values&lt;/STRONG&gt; field to &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;replace&lt;/FONT&gt; &lt;/STRONG&gt;the original one&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 01:59:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-24T01:59:16Z</dc:date>
    <item>
      <title>How to show all Rows in matrix Even if there is no data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-all-Rows-in-matrix-Even-if-there-is-no-data/m-p/4002802#M156102</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a client-request that wants to show all rows of a Dimension Table (In this case all of the specific Departments) even when there are no values.&lt;BR /&gt;&lt;BR /&gt;Example: a filter is set for a weekend and only one department works that weekend, so all departments will show 0 except one.&lt;BR /&gt;&lt;BR /&gt;There are 44 Departments Total. The Dax is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Example Hours = SUM(Fact_Timecards[Hours]) + 0&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-align-center"&gt;Below is what we don't want to happen (removing departments), the code field is the one from the Dimension Table. (I'm also using the show data with no values setting on the Rows [Code], clearly is not working).&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Here is a look at the Model for Reference&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Though when I disactivate the relationship, I get the familiar repeated-value.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Any suggestions is welome, thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 21:00:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-all-Rows-in-matrix-Even-if-there-is-no-data/m-p/4002802#M156102</guid>
      <dc:creator>cboelterGNH</dc:creator>
      <dc:date>2024-06-20T21:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to show all Rows in matrix Even if there is no data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-all-Rows-in-matrix-Even-if-there-is-no-data/m-p/4002854#M156114</link>
      <description>&lt;P&gt;If you change the relationship to "Both" from Fact_Timecards to DepartmentCodes, it should work.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 22:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-all-Rows-in-matrix-Even-if-there-is-no-data/m-p/4002854#M156114</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-06-20T22:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to show all Rows in matrix Even if there is no data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-all-Rows-in-matrix-Even-if-there-is-no-data/m-p/4005974#M156807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="630902" data-lia-user-login="cboelterGNH" class="lia-mention lia-mention-user"&gt;cboelterGNH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it:&lt;/P&gt;
&lt;P&gt;1. &lt;STRONG&gt;Delete&lt;/STRONG&gt; the relationship between the table 'Fact_Timecards' and 'DepartmentCodes'&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure_ExampleHours =
VAR _code =
    SELECTEDVALUE ( 'DepartmentCodes'[Code] )
RETURN
    CALCULATE (
        SUM ( 'Fact_Timecards'[Example Hours] ),
        FILTER ( 'Fact_Timecards', 'Fact_Timecards'[Home Department-9999XX] = _code )
    )&lt;/LI-CODE&gt;
&lt;P&gt;3. Put the above measure onto the &lt;STRONG&gt;Values&lt;/STRONG&gt; field to &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;replace&lt;/FONT&gt; &lt;/STRONG&gt;the original one&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 01:59:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-all-Rows-in-matrix-Even-if-there-is-no-data/m-p/4005974#M156807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T01:59:16Z</dc:date>
    </item>
  </channel>
</rss>

