<?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: Summarize multiple columns in one slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3491027#M133667</link>
    <description>&lt;P&gt;Here you go: &lt;A href="https://1drv.ms/u/c/38cdf17e3f181cfc/EYwY3le7Z8tGslfwVYSolxoB6Wync4xhRa2tOX7BlvL6ww?e=qVcKg9" target="_blank"&gt;CalcGroupIssue.pbix&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 09:56:45 GMT</pubDate>
    <dc:creator>MarDen94</dc:creator>
    <dc:date>2023-10-23T09:56:45Z</dc:date>
    <item>
      <title>Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3461538#M132039</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a question regarding some DAX-logic to create a slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a table similar to this one:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ID&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Option1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Option2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Option3&lt;/P&gt;&lt;/TD&gt;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;&lt;/P&gt;&lt;P&gt;I am trying to figure out a way to create a slicer that enables me to check on of the options and show data for all lines that have these options. However I want to avoid creating 3 slicers, so the slicer should contain all 3 options as selectable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this for me using DAX?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NB. it would be possible to replace the boolean-fields with text where TRUE is replaced by Option# and FALSE is null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Oct 2023 11:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3461538#M132039</guid>
      <dc:creator>MarDen94</dc:creator>
      <dc:date>2023-10-05T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3462145#M132059</link>
      <description>&lt;P&gt;You can achieve this using Calculation Groups in Power BI. Calculation Groups allow you to create dynamic slicers that can be used to switch between different calculations or filters in your report. In your case, you want to create a slicer that allows you to select one or more options (Option1, Option2, Option3) and filter the data accordingly.&lt;/P&gt;&lt;P&gt;Here's how you can set up a Calculation Group to achieve this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Create a new Calculation Group: In Power BI Desktop, go to the Modeling tab and click on "New Calculation Group."&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Define Calculation Items: In the Calculation Group editor, define calculation items for each option (Option1, Option2, Option3). Name these calculation items accordingly.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;For Option1:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculation Formula: FILTER('YourTable', 'YourTable'[Option1] = TRUE())&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;For Option2:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculation Formula: FILTER('YourTable', 'YourTable'[Option2] = TRUE())&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;For Option3:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculation Formula: FILTER('YourTable', 'YourTable'[Option3] = TRUE())&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These formulas use the FILTER function to filter the table based on the selected option.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Add a Slicer to Your Report: Drag and drop the Calculation Group you created onto your report canvas. It will automatically create a slicer that allows you to select one or more options.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Customize the Slicer: You can customize the slicer to allow multiple selections by going to the Slicer settings and enabling the "Multi-select with OR logic" option. This will allow you to select multiple options, and the report will show data for any option that is selected.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now, when you use the slicer, you can select one or more options (Option1, Option2, Option3), and the report will dynamically filter the data based on your selections. This avoids the need for multiple slicers and provides a more user-friendly experience.&lt;BR /&gt;Let me know if you have any questions&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 17:00:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3462145#M132059</guid>
      <dc:creator>_elbpower</dc:creator>
      <dc:date>2023-10-05T17:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3485090#M133340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that the calculation groups in the most recent version of PBI Desktop are included.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I downloaded this version and started with the steps you provided.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However in step 4 I cannot find the &lt;SPAN&gt;"Multi-select with OR logic" option you mention. Could you point me in the right direction for this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 08:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3485090#M133340</guid>
      <dc:creator>MarDen94</dc:creator>
      <dc:date>2023-10-19T08:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3487610#M133455</link>
      <description>&lt;P&gt;It should be part of slicer settings.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 12:01:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3487610#M133455</guid>
      <dc:creator>_elbpower</dc:creator>
      <dc:date>2023-10-20T12:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3490924#M133664</link>
      <description>&lt;P&gt;Unfortunately I am still struggeling to make it completely work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've gotten to a point where I was able to create the calculation group and it works (to an extent).&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I select multiple options the cout of IDs always shows the total number of possible IDs instead of a total filtered with OR-logic (current selection should return 7).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoefully the following screenshots help in explaining the issue:&amp;nbsp;&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;&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;</description>
      <pubDate>Mon, 23 Oct 2023 09:30:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3490924#M133664</guid>
      <dc:creator>MarDen94</dc:creator>
      <dc:date>2023-10-23T09:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3490980#M133666</link>
      <description>&lt;P&gt;Please share your sample PBI file&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 09:44:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3490980#M133666</guid>
      <dc:creator>_elbpower</dc:creator>
      <dc:date>2023-10-23T09:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3491027#M133667</link>
      <description>&lt;P&gt;Here you go: &lt;A href="https://1drv.ms/u/c/38cdf17e3f181cfc/EYwY3le7Z8tGslfwVYSolxoB6Wync4xhRa2tOX7BlvL6ww?e=qVcKg9" target="_blank"&gt;CalcGroupIssue.pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 09:56:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3491027#M133667</guid>
      <dc:creator>MarDen94</dc:creator>
      <dc:date>2023-10-23T09:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3491731#M133696</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CountIds =
VAR SelectedOptions =
    CONCATENATEX(VALUES('Calculation group'[Calculation group column]), 'Calculation group'[Calculation group column], ", ")
VAR A = SUMMARIZE('Fact', 'Fact'[ID], "values",
    IF(
        (CONTAINSSTRING(SelectedOptions, "Option 1") &amp;amp;&amp;amp; VALUES('Fact'[Option1]) = TRUE()) ||
        (CONTAINSSTRING(SelectedOptions, "Option 2") &amp;amp;&amp;amp; VALUES('Fact'[Option2]) = TRUE()) ||
        (CONTAINSSTRING(SelectedOptions, "Option 3") &amp;amp;&amp;amp; VALUES('Fact'[Option3]) = TRUE()),
        1,
        0
    )
)
VAR DistinctIDs = SUMMARIZE(FILTER(A, [values] = 1), [ID])
RETURN COUNTROWS(DistinctIDs)&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 15:01:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3491731#M133696</guid>
      <dc:creator>_elbpower</dc:creator>
      <dc:date>2023-10-23T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize multiple columns in one slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3493200#M133782</link>
      <description>&lt;P&gt;Thanks, this was the solution I was looking for&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 07:52:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-multiple-columns-in-one-slicer/m-p/3493200#M133782</guid>
      <dc:creator>MarDen94</dc:creator>
      <dc:date>2023-10-24T07:52:03Z</dc:date>
    </item>
  </channel>
</rss>

