<?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: create a table that contains the columns chosen by the user in the slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4072925#M161698</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 07:03:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-01T07:03:13Z</dc:date>
    <item>
      <title>create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4029896#M159310</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;Is it possible create a summarize table that bring a column selected by user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main table has 6 columns that indicate the possible priority of lots in which each sale (key) may belong to certain vendors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;KEY&lt;/TD&gt;&lt;TD&gt;JOHN_ANA_PETER&lt;/TD&gt;&lt;TD&gt;JOHN_PETER_ANA&lt;/TD&gt;&lt;TD&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ETER&lt;/TD&gt;&lt;TD&gt;PETER&lt;/TD&gt;&lt;TD&gt;PETER&lt;/TD&gt;&lt;TD&gt;PETER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10256459&lt;/TD&gt;&lt;TD&gt;ANA&lt;/TD&gt;&lt;TD&gt;ANA&lt;/TD&gt;&lt;TD&gt;ANA&lt;/TD&gt;&lt;TD&gt;ANA&lt;/TD&gt;&lt;TD&gt;ANA&lt;/TD&gt;&lt;TD&gt;ANA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I created a Field parameter in power bi that allows the user to choose which of the 6 columns he wants as batch priority&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Parameter&lt;/TD&gt;&lt;TD&gt;Parameter Fields&lt;/TD&gt;&lt;TD&gt;Parameter Order&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;JOHN, ANA, PETER&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;table[JOHN_ANA_PETER]&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;JOHN, PETER, ANA&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;table[JOHN_PETER_ANA]&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PETER, ANA, JOHN&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;table[PETER_ANA_JOHN]&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PETER, JOHN, ANA&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;table[PETER_JOHN_ANA]&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ANA, PETER, JOHN&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;table[ANA_PETER_JOHN]&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ANA, JOHN, PETER&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;table[ANA_JOHN_PETER]&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, how to create a table filtered by slicer?&lt;/P&gt;&lt;P&gt;For example, if the user selects "JOHN, ANA, PETER" the table should only have the columns KEY and JOHN, ANA, PETER.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Filtered_Table = 
VAR slicerselected = SELECTEDVALUE(Parameter[Parameter])
RETURN
    FILTER(
        Table,
        SWITCH(
            slicerselected,
            0, Table[JOHN_ANA_PETER],
            1, Table[JOHN_PETER_ANA],
            2, Table[PETER_ANA_JOHN],
            3, Table[PETER_JOHN_ANA],
            4, Table[ANA_PETER_JOHN],
            5, Table[ANA_JOHN_PETER]
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but show this: "Column [Parameter] is part of composite key, but not all columns of the composite key are included in the expression or its dependent expression."&lt;BR /&gt;&lt;BR /&gt;I found posts like this &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/SUMMARIZE-Switch-Columns-using-a-Parameter-Filter/m-p/2850326#M982428," target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Desktop/SUMMARIZE-Switch-Columns-using-a-Parameter-Filter/m-p/2850326#M982428,&lt;/A&gt; but in my case a different solution is needed&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 09:52:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4029896#M159310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T09:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4029903#M159311</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, and thank you for sharing a question with the Community.&amp;nbsp; The following is informational.&amp;nbsp; &amp;nbsp;Please&amp;nbsp;remember to adhere to the decorum of the Community Forum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 09:54:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4029903#M159311</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-08T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4029941#M159318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="89602" data-lia-user-login="foodd" class="lia-mention lia-mention-user"&gt;foodd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my working progress file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/mscla/salesassignpbi/raw/main/sales_parameter_filter.pbix" target="_self"&gt;Sales_parameter_filter.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 10:15:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4029941#M159318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4068428#M161511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A late reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, you only need to put the parameter into the table visual to enable you to display the data by selecting the parameter.&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;Here is the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:38:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4068428#M161511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-30T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4068470#M161514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for reply...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I need to create a DAX table, not a visual, but I think it is not possible! DAX dont allow to use parameter or measures based on slicers to filter a DAX table...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:55:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4068470#M161514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-30T06:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4068516#M161516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your idea is right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The role of the parameter is to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using parameters can be used to dynamically adjust data source properties, replace values, and filter data rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, you can create a parameter to select different date ranges or geographic regions to dynamically adjust the data in the report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or with parameters, you can create interactive slicers or sliders in the report that allow report users to tailor the view of the data to their needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4068516#M161516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-30T07:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4072749#M161687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me if your problem is solved? If yes, please accept it as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 05:44:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4072749#M161687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T05:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4072853#M161692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved it by using Power Automate and a stored procedure to record the data into SQL server and then write it back with a direct query connection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4072853#M161692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T06:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: create a table that contains the columns chosen by the user in the slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4072925#M161698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:03:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-a-table-that-contains-the-columns-chosen-by-the-user-in/m-p/4072925#M161698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T07:03:13Z</dc:date>
    </item>
  </channel>
</rss>

