<?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: Field Parameter assistance in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4246613#M168126</link>
    <description>&lt;P&gt;That seems to work, Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 13:12:55 GMT</pubDate>
    <dc:creator>batman</dc:creator>
    <dc:date>2024-10-17T13:12:55Z</dc:date>
    <item>
      <title>Field Parameter assistance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4232374#M167384</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;I need some assistance with field paramters, I created a field parameter called "OTF," which essentially allows toggling between two flags with values of "Yes" and "No." I want to enable users to select either Field A or Field B, and then choose between "Yes" or "No." In this case we are selecting a No in the calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write a calculation as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CountRowsNum =&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;TableName,&lt;BR /&gt;TableName[AnotherFlag] = "N" &amp;amp;&amp;amp; SELECTEDVALUE('Parameter[OTF]') = "N"&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to count rows where "AnotherFlag" is 'N' and the selected OTF is also 'N,' while allowing users to switch between Field A and Field B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aj&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Oct 2024 18:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4232374#M167384</guid>
      <dc:creator>batman</dc:creator>
      <dc:date>2024-10-07T18:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameter assistance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4232892#M167406</link>
      <description>&lt;P&gt;DAX calculation:&lt;/P&gt;&lt;PRE&gt;CountRowsNum = &lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;TableName,&lt;BR /&gt;TableName[AnotherFlag] = "N" &amp;amp;&amp;amp;&lt;BR /&gt;SWITCH( &lt;BR /&gt;TRUE(),&lt;BR /&gt;SELECTEDVALUE('Parameter[OTF]') = "Field A", TableName[FieldA] = "N",&lt;BR /&gt;SELECTEDVALUE('Parameter[OTF]') = "Field B", TableName[FieldB] = "N",&lt;BR /&gt;FALSE()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2024 05:26:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4232892#M167406</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-10-08T05:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameter assistance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4236283#M167570</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="453150" data-lia-user-login="batman" class="lia-mention lia-mention-user"&gt;batman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have gotten this issue resolved?&lt;BR /&gt;If it is solved, please mark the helpful reply or share your solution and accept it as solution.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If it doesn't resolve, please provide sample data. We can better understand the problem and help you.&amp;nbsp;&lt;/P&gt;
&lt;P&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;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dengliang Li&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 06:05:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4236283#M167570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-10T06:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parameter assistance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4246613#M168126</link>
      <description>&lt;P&gt;That seems to work, Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:12:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameter-assistance/m-p/4246613#M168126</guid>
      <dc:creator>batman</dc:creator>
      <dc:date>2024-10-17T13:12:55Z</dc:date>
    </item>
  </channel>
</rss>

