<?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 Can slicer values be renamed with text but use underlying numeric values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-slicer-values-be-renamed-with-text-but-use-underlying/m-p/2849738#M91304</link>
    <description>&lt;P&gt;Say I have slicer that is using values from 1-15 in steps of 5, these values are being used to make a TOPN measurement, I have, dynamic, as seen in the SELECTEDVALUE function below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TopCustomer = 
VAR PickFromSlicer = SELECTEDVALUE('TOPN Selection'[TOPN Value])
RETURN
SUMX(
TOPN(
PickFromSlicer,
FILTER(ADDCOLUMNS(
    VALUES(YourTable[Customer]),
    "Total",CALCULATE(COUNTROWS(YourTable)),
    "Rank", RANKX(ALL(YourTable[Customer]),CALCULATE(COUNT(YourTable[Customer])))
    ),[Rank] &amp;lt;= PickFromSlicer),[Total],DESC),[Total]
    )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I want my slicer selections to be text as listed in the below table, but I still need the numeric value to be used in my TOPN measurement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;TOPN Value&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Text to be shown in Slicer&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;Very Narrow View&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;Narrow View&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has any one done something like this before? Is it possible?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 18:59:43 GMT</pubDate>
    <dc:creator>TSki</dc:creator>
    <dc:date>2022-10-18T18:59:43Z</dc:date>
    <item>
      <title>Can slicer values be renamed with text but use underlying numeric values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-slicer-values-be-renamed-with-text-but-use-underlying/m-p/2849738#M91304</link>
      <description>&lt;P&gt;Say I have slicer that is using values from 1-15 in steps of 5, these values are being used to make a TOPN measurement, I have, dynamic, as seen in the SELECTEDVALUE function below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TopCustomer = 
VAR PickFromSlicer = SELECTEDVALUE('TOPN Selection'[TOPN Value])
RETURN
SUMX(
TOPN(
PickFromSlicer,
FILTER(ADDCOLUMNS(
    VALUES(YourTable[Customer]),
    "Total",CALCULATE(COUNTROWS(YourTable)),
    "Rank", RANKX(ALL(YourTable[Customer]),CALCULATE(COUNT(YourTable[Customer])))
    ),[Rank] &amp;lt;= PickFromSlicer),[Total],DESC),[Total]
    )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I want my slicer selections to be text as listed in the below table, but I still need the numeric value to be used in my TOPN measurement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;TOPN Value&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Text to be shown in Slicer&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;Very Narrow View&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;Narrow View&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;All&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has any one done something like this before? Is it possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 18:59:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-slicer-values-be-renamed-with-text-but-use-underlying/m-p/2849738#M91304</guid>
      <dc:creator>TSki</dc:creator>
      <dc:date>2022-10-18T18:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can slicer values be renamed with text but use underlying numeric values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-slicer-values-be-renamed-with-text-but-use-underlying/m-p/2849879#M91308</link>
      <description>&lt;P&gt;After some expierimenting, I figured it out! By adding the &lt;STRONG&gt;"Slicer Text"&lt;/STRONG&gt; Column to my slicer table, by right clicking on it and clicking &lt;STRONG&gt;"Edit Query"&lt;/STRONG&gt; in the drop down, making my changes(adding the column) and then pressing &lt;STRONG&gt;"Close and Apply,"&lt;/STRONG&gt; a feild with my new column name appeared in the Feilds Pane. I then clicked on my slicer, and unchecked the &lt;STRONG&gt;"TopN Value"&lt;/STRONG&gt; feild(under my slicer table) and then checked the &lt;STRONG&gt;"Slicer Text"&lt;/STRONG&gt; feild. I am newer to Powerbi, so this was not obvius to me. I hope this discription helps someone in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 20:43:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-slicer-values-be-renamed-with-text-but-use-underlying/m-p/2849879#M91308</guid>
      <dc:creator>TSki</dc:creator>
      <dc:date>2022-10-18T20:43:32Z</dc:date>
    </item>
  </channel>
</rss>

