<?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 dimension value (calculated column value) based on measure defined by slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/2432567#M64810</link>
    <description>&lt;P&gt;Hello DAX fellows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a dimension (table column) that changes its value based on selected slicer value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The use case is: Select an X value and for each row of table calculate Value &amp;gt; Selected X.&lt;/P&gt;&lt;P&gt;E.g. to classify stores into two categories: where Profitability &amp;gt; 10% and where Profitability &amp;lt;= 10%. I need to be able to set this Profitability threshold from a slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result should be a table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Value &amp;gt; Selected X&lt;/TD&gt;&lt;TD&gt;Nr of Values&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;nr values &amp;gt; X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;False&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;nr values &amp;lt;= X&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I created a test table of Values from 1 to 100 and column [Value &amp;gt; Selected X].&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Values = GENERATESERIES(1,100,1)
Value &amp;gt; Selected X = 'Values'[Value] &amp;gt; [Selected X]​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I created a table [X Values] with values of X and the measure [Selected X]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;X Values = DATATABLE("X", INTEGER, {{0},{25},{50},{100}})
Selected X = if(HASONEVALUE('X Values'[X]), VALUES('X Values'[X]), 0)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the Power BI page, I can select X from a slicer and see how [Selected X] value changes.&lt;/LI&gt;&lt;LI&gt;However, the column value [Value &amp;gt; Selected X] does not change, and default value of [Selected X] is used.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read in this forum that the table is not dynamically calculated, and therefore the page context does not influence the table's calculated column values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to understand how to achieve such dynamic filter that allows to split my population of values in two categories [Value &amp;gt; Selected X]: True and False. And then I would like to use measures together with these dimensions (e.g. [Nr of Values]).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://uploaded.net/file/ssulsoix" target="_blank" rel="noopener"&gt;I have uploaded my pbix here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your ideas.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 16:01:52 GMT</pubDate>
    <dc:creator>iz08</dc:creator>
    <dc:date>2022-04-01T16:01:52Z</dc:date>
    <item>
      <title>DAX dynamic dimension value (calculated column value) based on measure defined by slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/2432567#M64810</link>
      <description>&lt;P&gt;Hello DAX fellows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a dimension (table column) that changes its value based on selected slicer value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The use case is: Select an X value and for each row of table calculate Value &amp;gt; Selected X.&lt;/P&gt;&lt;P&gt;E.g. to classify stores into two categories: where Profitability &amp;gt; 10% and where Profitability &amp;lt;= 10%. I need to be able to set this Profitability threshold from a slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result should be a table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Value &amp;gt; Selected X&lt;/TD&gt;&lt;TD&gt;Nr of Values&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;nr values &amp;gt; X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;False&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;nr values &amp;lt;= X&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I created a test table of Values from 1 to 100 and column [Value &amp;gt; Selected X].&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Values = GENERATESERIES(1,100,1)
Value &amp;gt; Selected X = 'Values'[Value] &amp;gt; [Selected X]​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I created a table [X Values] with values of X and the measure [Selected X]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;X Values = DATATABLE("X", INTEGER, {{0},{25},{50},{100}})
Selected X = if(HASONEVALUE('X Values'[X]), VALUES('X Values'[X]), 0)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the Power BI page, I can select X from a slicer and see how [Selected X] value changes.&lt;/LI&gt;&lt;LI&gt;However, the column value [Value &amp;gt; Selected X] does not change, and default value of [Selected X] is used.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read in this forum that the table is not dynamically calculated, and therefore the page context does not influence the table's calculated column values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to understand how to achieve such dynamic filter that allows to split my population of values in two categories [Value &amp;gt; Selected X]: True and False. And then I would like to use measures together with these dimensions (e.g. [Nr of Values]).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://uploaded.net/file/ssulsoix" target="_blank" rel="noopener"&gt;I have uploaded my pbix here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your ideas.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 16:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/2432567#M64810</guid>
      <dc:creator>iz08</dc:creator>
      <dc:date>2022-04-01T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX dynamic dimension value (calculated column value) based on measure defined by slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/2432602#M64812</link>
      <description>&lt;P&gt;You would need to create a measure like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Above Threshold = IF( SELECTEDVALUE('Table'[Value]) &amp;gt; SELECTEDVALUE( 'Threshold Table'[Threshold]),1, 0)&lt;/LI-CODE&gt;&lt;P&gt;You can then use that as a visual filter to show only things where [Above Threshold] = 1. You can also use it in other calculations like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum above threshold = SUMX( FILTER( 'Table', [Above Threshold] = 1), 'Table'[Amount])&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Apr 2022 16:25:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/2432602#M64812</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-04-01T16:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX dynamic dimension value (calculated column value) based on measure defined by slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/2432625#M64814</link>
      <description>&lt;P&gt;Thanks, but that's not exactly what I need.&lt;/P&gt;&lt;P&gt;I need to split my population into two categories (dimension values true and false) and be able to compare and filter these 2 categories by different KPIs. That is why I was thinking about the dimension.&lt;/P&gt;&lt;P&gt;I would be able to create measures that use the slicer, but I need to see the underlying data (e.g. which stores have profitability less than the dynamic value from the slicer).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 16:42:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/2432625#M64814</guid>
      <dc:creator>iz08</dc:creator>
      <dc:date>2022-04-01T16:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX dynamic dimension value (calculated column value) based on measure defined by slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/3230033#M118495</link>
      <description>&lt;P&gt;Did you ever resolve this?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:44:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/3230033#M118495</guid>
      <dc:creator>AlexaderMilland</dc:creator>
      <dc:date>2023-05-11T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX dynamic dimension value (calculated column value) based on measure defined by slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/3230127#M118499</link>
      <description>&lt;P&gt;Hi, I'm the original poster.&lt;/P&gt;&lt;P&gt;I didn't win this one, because DAX doesn't support such functionality.&lt;/P&gt;&lt;P&gt;I worked around that one by using either a numeric slicer or a hardcoded value in the calculated column.&lt;/P&gt;&lt;P&gt;Don't remember the exact solution because the project had been finished a year ago.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:58:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/3230127#M118499</guid>
      <dc:creator>NoSpaces</dc:creator>
      <dc:date>2023-05-11T07:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX dynamic dimension value (calculated column value) based on measure defined by slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/3230429#M118512</link>
      <description>&lt;P&gt;Yeah thinking I need to use a hardcoded calculated column unfortunately&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 09:22:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-dynamic-dimension-value-calculated-column-value-based-on/m-p/3230429#M118512</guid>
      <dc:creator>AlexaderMilland</dc:creator>
      <dc:date>2023-05-11T09:22:23Z</dc:date>
    </item>
  </channel>
</rss>

