<?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 default Rows in Matrix Visual Chart even though Slicer is applied on page. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233154#M167421</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821740" data-lia-user-login="Dataseeker009" class="lia-mention lia-mention-user"&gt;Dataseeker009&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To simplify the process, you can take the following steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a dimension table as shown:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, establish a relationship with these properties:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should yield the desired outcome, as illustrated here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This method is a quick fix, but it may lead to complications with more complex data models in the future. A more effective solution would require a deeper understanding of your data model's structure and intricacies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For straightforward data models, this approach should suffice and can be implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 08:13:27 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2024-10-08T08:13:27Z</dc:date>
    <item>
      <title>How to show default Rows in Matrix Visual Chart even though Slicer is applied on page.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233055#M167414</link>
      <description>&lt;P&gt;I have a table with task names, categories , bunch other details associated with tasks. The table is composed as below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;taskName&lt;/TD&gt;&lt;TD&gt;Role&lt;/TD&gt;&lt;TD&gt;details&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 1&lt;/TD&gt;&lt;TD&gt;Dev&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 2&lt;/TD&gt;&lt;TD&gt;QA&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 3&lt;/TD&gt;&lt;TD&gt;Dev&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 4&lt;/TD&gt;&lt;TD&gt;QA&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 5&lt;/TD&gt;&lt;TD&gt;Manager&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 6&lt;/TD&gt;&lt;TD&gt;Supervisor&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 7&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 8&lt;/TD&gt;&lt;TD&gt;All Other&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 9&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Now, when create a slicer based on Role column ( created dimension out the it and used it for slicer) and applied QA Role the matrix chart slices the data for only task 2 and task 4. But the requirement is show task 2, task 4 and task 7, task 8, task 9 along with. So apart from the selection of All and All other roles which ever is selected it should show that role task and the default Role tasks.&lt;BR /&gt;For this I created Flag metric and applied on the visual&lt;BR /&gt;Flag metric:&lt;BR /&gt;Flag =&lt;BR /&gt;var _selectedRole = selectedvalue(RoleDimension[Role])&lt;BR /&gt;return&lt;BR /&gt;&amp;nbsp;IF&lt;BR /&gt;(&lt;BR /&gt;OR(&lt;BR /&gt;MAX(Table[Role]) = _selectedRole, MAX(Table[Role]) = "All"), 1, 0&lt;BR /&gt;)&lt;BR /&gt;Expectation from the above was it would assign the value of 1 to rows where Role is "All" and selected Role from slicer. But the visual only filters for selected Role leaving out the defaults rows.&lt;BR /&gt;Expected results&lt;BR /&gt;When Role = QA, it should show as below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;taskName&lt;/TD&gt;&lt;TD&gt;Role&lt;/TD&gt;&lt;TD&gt;details&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 2&lt;/TD&gt;&lt;TD&gt;QA&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 4&lt;/TD&gt;&lt;TD&gt;QA&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 7&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 8&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Task 9&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;How to acheive this functionality. Any help and approach to this problem would helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 07:39:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233055#M167414</guid>
      <dc:creator>Dataseeker009</dc:creator>
      <dc:date>2024-10-08T07:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to show default Rows in Matrix Visual Chart even though Slicer is applied on page.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233126#M167419</link>
      <description>&lt;PRE&gt;Flag =&lt;BR /&gt;VAR _selectedRole = SELECTEDVALUE(RoleDimension[Role])&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;OR (&lt;BR /&gt;MAX(Table[Role]) = _selectedRole, &lt;BR /&gt;MAX(Table[Role]) = "All", &lt;BR /&gt;MAX(Table[Role]) = "All Other"&lt;BR /&gt;), &lt;BR /&gt;1, &lt;BR /&gt;0&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2024 08:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233126#M167419</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-10-08T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to show default Rows in Matrix Visual Chart even though Slicer is applied on page.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233154#M167421</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821740" data-lia-user-login="Dataseeker009" class="lia-mention lia-mention-user"&gt;Dataseeker009&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To simplify the process, you can take the following steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a dimension table as shown:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, establish a relationship with these properties:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should yield the desired outcome, as illustrated here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This method is a quick fix, but it may lead to complications with more complex data models in the future. A more effective solution would require a deeper understanding of your data model's structure and intricacies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For straightforward data models, this approach should suffice and can be implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 08:13:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233154#M167421</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-10-08T08:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to show default Rows in Matrix Visual Chart even though Slicer is applied on page.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233404#M167431</link>
      <description>&lt;P&gt;Flag measure:&lt;/P&gt;&lt;PRE&gt;Flag =&lt;BR /&gt;VAR _selectedRole = SELECTEDVALUE(RoleDimension[Role])&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;OR (&lt;BR /&gt;MAX(Table[Role]) = _selectedRole,&lt;BR /&gt;MAX(Table[Role]) = "All",&lt;BR /&gt;MAX(Table[Role]) = "All Other"&lt;BR /&gt;),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a visual level filter using the Flag measure:&lt;BR /&gt;Set the filter condition to show only rows where Flag equals 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure your slicer is based on the RoleDimension[Role] field, so when users select "QA", the Flag measure will determine which tasks to display.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 10:41:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4233404#M167431</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-10-08T10:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to show default Rows in Matrix Visual Chart even though Slicer is applied on page.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4234399#M167466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821740" data-lia-user-login="Dataseeker009" class="lia-mention lia-mention-user"&gt;Dataseeker009&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from Kedar_Pande&amp;nbsp; and quantumudit&amp;nbsp;, please allow me to provide another insight:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The OR function in DAX takes only two arguments, so you can use the OR operator (||) to join all calculations into a simpler expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
VAR _selectedRole = SELECTEDVALUE(RoleDimension[Role])
RETURN
IF (
MAX('Table'[Role]) = _selectedRole ||
MAX('Table'[Role]) = "All" ||
MAX('Table'[Role]) = "All Other",
1,
0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is worth noting that do not create a relationship between the two tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final result is shown below, more details can be found in the attachment.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 02:37:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4234399#M167466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-09T02:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to show default Rows in Matrix Visual Chart even though Slicer is applied on page.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4234517#M167470</link>
      <description>&lt;P&gt;Thank you for reply and solutions &lt;SPAN class=""&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/219243" target="_self"&gt;&lt;SPAN class=""&gt;quantumudit&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568855" data-lia-user-login="Kedar_Pande" class="lia-mention lia-mention-user"&gt;Kedar_Pande&lt;/a&gt; , Anonymous&lt;/a&gt;.&lt;BR /&gt;The solution using the flag metric still filters the main table of exclusive filters on the matrix table, But the solution of creating a composite Role dimension works in current context of my problem.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 04:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-default-Rows-in-Matrix-Visual-Chart-even-though/m-p/4234517#M167470</guid>
      <dc:creator>Dataseeker009</dc:creator>
      <dc:date>2024-10-09T04:31:25Z</dc:date>
    </item>
  </channel>
</rss>

