<?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: Dynamic Table Columns With Slicer Using Field Parameters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844345#M90962</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109790" data-lia-user-login="d_gosbell" class="lia-mention lia-mention-user"&gt;d_gosbell&lt;/a&gt; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450074" data-lia-user-login="Shaurya" class="lia-mention lia-mention-user"&gt;Shaurya&lt;/a&gt;&amp;nbsp;, thanks for the feedback. That works but this is not the result I'm looking for. I need the columns to appear when value in slicer is selected and if no values selected, then columns are hidden. Hence the&amp;nbsp;&lt;STRONG&gt;field paramter&lt;/STRONG&gt; method I chose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use integrate your method using the field parameters? I'll have a go but please do let me know if you find a quicker method. Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Oct 2022 08:42:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-16T08:42:05Z</dc:date>
    <item>
      <title>Dynamic Table Columns With Slicer Using Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844035#M90931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table visual that is controlled by slicer and both table &amp;amp; slicer are using field parameters. It’s working fine but I would like to modify the slicer. The slicer currently has 9 values:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Kiosk Revenue&lt;/LI&gt;&lt;LI&gt;Kiosk Comparative&lt;/LI&gt;&lt;LI&gt;Kiosk Variance&lt;/LI&gt;&lt;LI&gt;TEX Revenue&lt;/LI&gt;&lt;LI&gt;TEX Comparative&lt;/LI&gt;&lt;LI&gt;TEX Variance&lt;/LI&gt;&lt;LI&gt;Online Revenue&lt;/LI&gt;&lt;LI&gt;Online Revenue Comparative&lt;/LI&gt;&lt;LI&gt;Online Revenue Variance&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would like to reduce it by grouping the values into 3 categories:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Kiosk&lt;/LI&gt;&lt;LI&gt;TEX&lt;/LI&gt;&lt;LI&gt;Online Revenue&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So based on the above changes, the operation will be the same i.e.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;when “Kiosk” is selected, the columns “Kiosk Revenue”, “Kiosk Comparative”, and “Kiosk Variance” will show on the table&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;when “TEX” is selected, the columns “TEX Revenue”, “TEX Comparative”, and “TEX Variance” will show on the table&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;when “Online Revenue” is selected, the columns “Online Revenue”, “Online Revenue Comparative”, and “Online Revenue Variance” will show on the table&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;when no values selected, all columns will show on the table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is this possible to achieve? Hope that makes sense.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109790" data-lia-user-login="d_gosbell" class="lia-mention lia-mention-user"&gt;d_gosbell&lt;/a&gt;&amp;nbsp;appreciate any help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pbix file for reference&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1EEW1KK33DArAHRH34VqZNjNk6KqJPaFM/view?usp=sharing" target="_blank" rel="noopener nofollow ugc"&gt;https://drive.google.com/file/d/1EEW1KK33DArAHRH34VqZNjNk6KqJPaFM/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Short clip of the issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.awesomescreenshot.com/video/11722864?key=8ccea0351155f9c35870e85bd501f45b" target="_blank" rel="noopener"&gt;https://www.awesomescreenshot.com/video/11722864?key=8ccea0351155f9c35870e85bd501f45b&lt;/A&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>Sun, 16 Oct 2022 00:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844035#M90931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-16T00:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Table Columns With Slicer Using Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844264#M90951</link>
      <description>&lt;P class="lia-align-justify"&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Create a new category column that has values Kiosk, TEX and Online Revenue and use that for your slicer. Check the measure created for your field parameter and modify it accordingly.&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;I&gt;Did I answer your question? Mark this post as a solution if I did!&lt;BR /&gt;Consider taking a look at my blog:&amp;nbsp;&lt;LI-MESSAGE title="Forecast Period - Previous Forecasts" uid="2834897" url="https://community.powerbi.com/t5/Themes-Gallery/Forecast-Period-Previous-Forecasts/m-p/2834897#U2834897" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 07:17:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844264#M90951</guid>
      <dc:creator>Shaurya</dc:creator>
      <dc:date>2022-10-16T07:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Table Columns With Slicer Using Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844326#M90959</link>
      <description>&lt;P&gt;I don't think you even need a field parameter to solve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you create a table with your 3 values (I just called it category)&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Category = &lt;/SPAN&gt;&lt;SPAN&gt;DATATABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Category"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;SPAN&gt;, {{&lt;/SPAN&gt;&lt;SPAN&gt;"Kiosk"&lt;/SPAN&gt;&lt;SPAN&gt;},{&lt;/SPAN&gt;&lt;SPAN&gt;"TEX"&lt;/SPAN&gt;&lt;SPAN&gt;},{&lt;/SPAN&gt;&lt;SPAN&gt;"Online"&lt;/SPAN&gt;&lt;SPAN&gt;}})&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Then as&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450074" data-lia-user-login="Shaurya" class="lia-mention lia-mention-user"&gt;Shaurya&lt;/a&gt;&amp;nbsp;suggested you can create measures checking for the selected value in the slicer (I would make the slicer a single selection). This is an example revenue measure, you would repeat the same pattern for Comparative and Variance.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Revenue = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(Category[Category]), &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Kiosk"&lt;/SPAN&gt;&lt;SPAN&gt;, 'Vend_Sale'[Revenue SUMX], &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"TEX"&lt;/SPAN&gt;&lt;SPAN&gt;,'mm_sheets'[Current Year Pax SUMX],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Online"&lt;/SPAN&gt;&lt;SPAN&gt;, 'Vend_Sale'[Transaction Count SUMX],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Oct 2022 08:03:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844326#M90959</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2022-10-16T08:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Table Columns With Slicer Using Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844345#M90962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109790" data-lia-user-login="d_gosbell" class="lia-mention lia-mention-user"&gt;d_gosbell&lt;/a&gt; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450074" data-lia-user-login="Shaurya" class="lia-mention lia-mention-user"&gt;Shaurya&lt;/a&gt;&amp;nbsp;, thanks for the feedback. That works but this is not the result I'm looking for. I need the columns to appear when value in slicer is selected and if no values selected, then columns are hidden. Hence the&amp;nbsp;&lt;STRONG&gt;field paramter&lt;/STRONG&gt; method I chose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use integrate your method using the field parameters? I'll have a go but please do let me know if you find a quicker method. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 08:42:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844345#M90962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-16T08:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Table Columns With Slicer Using Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844364#M90966</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Anonymous&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109790" data-lia-user-login="d_gosbell" class="lia-mention lia-mention-user"&gt;d_gosbell&lt;/a&gt; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450074" data-lia-user-login="Shaurya" class="lia-mention lia-mention-user"&gt;Shaurya&lt;/a&gt;&amp;nbsp;, thanks for the feedback. That works but this is not the result I'm looking for. I need the columns to appear when value in slicer is selected and if no values selected, then columns are hidden.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is my solution working the way you've described. I've put a revenue and comparative measure in the values and created a slicer for the category&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 08:49:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844364#M90966</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2022-10-16T08:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Table Columns With Slicer Using Field Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844383#M90968</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109790" data-lia-user-login="d_gosbell" class="lia-mention lia-mention-user"&gt;d_gosbell&lt;/a&gt;&amp;nbsp;, don't know what I did wrong the first time, but it's working for me now...without the need for field parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help and patience. Appreicate it.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 09:07:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Table-Columns-With-Slicer-Using-Field-Parameters/m-p/2844383#M90968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-16T09:07:56Z</dc:date>
    </item>
  </channel>
</rss>

