<?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: Is it possible for field parameters to have dynamic decimal places in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4310602#M171189</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510365" data-lia-user-login="DAX_pbi_learner" class="lia-mention lia-mention-user"&gt;DAX_pbi_learner&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I made simple samples and you can check the results below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Replace Value = var _s = SELECTEDVALUE('Parameter'[Parameter Order])
RETURN SWITCH(TRUE(),_s=0,ROUNDUP(MAX('Table'[Category1]),0),
_s=1,ROUNDUP(MAX('Table'[Category2]),0),
_s=2,MAX('Table'[Category3]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;An attachment for your reference. Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 01:24:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-12-03T01:24:39Z</dc:date>
    <item>
      <title>Is it possible for field parameters to have dynamic decimal places</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4310369#M171177</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have created field parameters for 3 units. However, I want only the Million metric tons to show 4 to 5 decimal places and the other units to be whole numbers. Is there a way to fix this?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 19:49:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4310369#M171177</guid>
      <dc:creator>DAX_pbi_learner</dc:creator>
      <dc:date>2024-12-02T19:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for field parameters to have dynamic decimal places</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4310602#M171189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510365" data-lia-user-login="DAX_pbi_learner" class="lia-mention lia-mention-user"&gt;DAX_pbi_learner&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I made simple samples and you can check the results below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Replace Value = var _s = SELECTEDVALUE('Parameter'[Parameter Order])
RETURN SWITCH(TRUE(),_s=0,ROUNDUP(MAX('Table'[Category1]),0),
_s=1,ROUNDUP(MAX('Table'[Category2]),0),
_s=2,MAX('Table'[Category3]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;An attachment for your reference. Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 01:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4310602#M171189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-03T01:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for field parameters to have dynamic decimal places</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4313812#M171297</link>
      <description>&lt;P&gt;hello, thank you for the solution...do you know how this would work with measures?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 16:26:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4313812#M171297</guid>
      <dc:creator>DAX_pbi_learner</dc:creator>
      <dc:date>2024-12-04T16:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for field parameters to have dynamic decimal places</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4314213#M171315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510365" data-lia-user-login="DAX_pbi_learner" class="lia-mention lia-mention-user"&gt;DAX_pbi_learner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe I didn't understand your need, I created a measure for Value based on the parameter's serial number, isn't that what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 01:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Is-it-possible-for-field-parameters-to-have-dynamic-decimal/m-p/4314213#M171315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-05T01:24:32Z</dc:date>
    </item>
  </channel>
</rss>

