<?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 DAX - Dynamic field parameter according filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4027300#M159131</link>
    <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a field parameter in a segment to change the information shown in my graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My field parameter looks like 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;_Dynamic Herarchy = {
    ("Market Segment", NAMEOF('CDD - Account Grouping'[Market Segment]),1),
    ("Customer Grouping", NAMEOF('CDD - Account Grouping'[CDD EU Customer Grouping]),2),
    ("Sold-To", NAMEOF('CDD - Account Grouping'[Sold To &amp;amp; Name]),3),
    ("Ship-To", NAMEOF('CDD - Invoiced Sales'[Ship To &amp;amp; Name]),4),
    ("BU",NAMEOF('Products'[BU]),5),
    ("Product Grouping",NAMEOF('Products'[Division Reporting Group Name]),6),
    ("Product",NAMEOF('Products'[Product]),7),
    ("Batch",NAMEOF('CDD - Invoiced Sales'[Batch]),8),
    ("Posting Date",NAMEOF('CDD - Invoiced Sales'[Posting Date]),9),
    ("Invoice Number", NAMEOF('CDD - Invoiced Sales'[Invoice Number]),10)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to make it dynamic according the filters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if a filter is set on the "Market Segment", I would like to hide this option in the field parameter. And do the same for all parameters included in my field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do someting like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 15:23:59 GMT</pubDate>
    <dc:creator>Kev59</dc:creator>
    <dc:date>2024-07-05T15:23:59Z</dc:date>
    <item>
      <title>DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4027300#M159131</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a field parameter in a segment to change the information shown in my graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My field parameter looks like 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;_Dynamic Herarchy = {
    ("Market Segment", NAMEOF('CDD - Account Grouping'[Market Segment]),1),
    ("Customer Grouping", NAMEOF('CDD - Account Grouping'[CDD EU Customer Grouping]),2),
    ("Sold-To", NAMEOF('CDD - Account Grouping'[Sold To &amp;amp; Name]),3),
    ("Ship-To", NAMEOF('CDD - Invoiced Sales'[Ship To &amp;amp; Name]),4),
    ("BU",NAMEOF('Products'[BU]),5),
    ("Product Grouping",NAMEOF('Products'[Division Reporting Group Name]),6),
    ("Product",NAMEOF('Products'[Product]),7),
    ("Batch",NAMEOF('CDD - Invoiced Sales'[Batch]),8),
    ("Posting Date",NAMEOF('CDD - Invoiced Sales'[Posting Date]),9),
    ("Invoice Number", NAMEOF('CDD - Invoiced Sales'[Invoice Number]),10)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to make it dynamic according the filters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if a filter is set on the "Market Segment", I would like to hide this option in the field parameter. And do the same for all parameters included in my field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do someting like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 15:23:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4027300#M159131</guid>
      <dc:creator>Kev59</dc:creator>
      <dc:date>2024-07-05T15:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4028235#M159151</link>
      <description>&lt;LI-CODE lang="markup"&gt;For example, if a filter is set on the "Market Segment", I would like to hide this option in the field parameter.&lt;/LI-CODE&gt;
&lt;P&gt;Why?&amp;nbsp; These concepts are independent of each other.&amp;nbsp; One is working on data level, the other on meta data level.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 17:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4028235#M159151</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-06T17:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4029596#M159272</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some segments used as global page filters but I use field paramaters to adapt to data shown in a matrix for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And If I have set a global filter on a specific region or country for example, I don't need to have this option available in my field parameter...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why I would like to link both "filtering".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feasible?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 07:41:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4029596#M159272</guid>
      <dc:creator>Kev59</dc:creator>
      <dc:date>2024-07-08T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030313#M159350</link>
      <description>&lt;P&gt;Is this something your users asked for?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 13:17:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030313#M159350</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-08T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030489#M159360</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For better clarity of the matrixes and to have field parameters with fewer options when global filters are used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, what I would do is feasible or not? Can I use IF function to create a modulable field parameters? Where can I find example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for any help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps: I know it's not a common request &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:09:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030489#M159360</guid>
      <dc:creator>Kev59</dc:creator>
      <dc:date>2024-07-08T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030598#M159372</link>
      <description>&lt;P&gt;Enable "Personalize Visuals"&amp;nbsp; and teach your report users how to use that feature.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:00:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030598#M159372</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-08T15:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030620#M159373</link>
      <description>&lt;P&gt;Sorry to say that but that doesn't answer my question: feasible or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And your solution is impossible in my case because the filters are inactivated on my report. Users use segments to filter my report pages (see below).&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030620#M159373</guid>
      <dc:creator>Kev59</dc:creator>
      <dc:date>2024-07-08T15:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030626#M159374</link>
      <description>&lt;P&gt;I see.&amp;nbsp; I respectfully disagree with your design choices and will retire from this thread.&amp;nbsp;I hope someone else can help you further.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:19:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030626#M159374</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-08T15:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030633#M159375</link>
      <description>&lt;P&gt;no worry &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:24:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4030633#M159375</guid>
      <dc:creator>Kev59</dc:creator>
      <dc:date>2024-07-08T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - Dynamic field parameter according filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4032574#M159570</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would something like this work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_Dynamc Hierarchy = 
VAR _FilterMarket = IF(ISFILTERED ( 'CDD - Account Grouping'[Market Segment] ),- 1,1)
VAR _FilterGrouping = IF(ISFILTERED ( 'CDD - Account Grouping'[CDD EU Customer Grouping] ),- 1,1)
RETURN
{
    ("Market Segment", NAMEOF('CDD - Account Grouping'[Market Segment]),_FilterMarket),
    ("Customer Grouping", NAMEOF('CDD - Account Grouping'[CDD EU Customer Grouping]),_FilterGrouping),
    ("Sold-To", NAMEOF('CDD - Account Grouping'[Sold To &amp;amp; Name]),3),
    ("Ship-To", NAMEOF('CDD - Invoiced Sales'[Ship To &amp;amp; Name]),4),
    ("BU",NAMEOF('Products'[BU]),5),
    ("Product Grouping",NAMEOF('Products'[Division Reporting Group Name]),6),
    ("Product",NAMEOF('Products'[Product]),7),
    ("Batch",NAMEOF('CDD - Invoiced Sales'[Batch]),8),
    ("Posting Date",NAMEOF('CDD - Invoiced Sales'[Posting Date]),9),
    ("Invoice Number", NAMEOF('CDD - Invoiced Sales'[Invoice Number]),10)
}&lt;/LI-CODE&gt;&lt;P&gt;And apply a filter on the segment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:52:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Dynamic-field-parameter-according-filters/m-p/4032574#M159570</guid>
      <dc:creator>Kev59</dc:creator>
      <dc:date>2024-07-09T12:52:49Z</dc:date>
    </item>
  </channel>
</rss>

