<?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: Swicth Function outcome used as slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259581#M20922</link>
    <description>OK. You should have stated this at the beginning... If you can't use SQL or some other query language, then you cannot create a slicer. You have to ask the admins of your system to create the table in the source for you.</description>
    <pubDate>Wed, 29 Jul 2020 15:17:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-29T15:17:06Z</dc:date>
    <item>
      <title>Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1256444#M20784</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a switch function that gives me the status of our machines -&amp;gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Threshold Last Audit = SWITCH(TRUE(),[DateDiff Last Audit]&amp;lt;=14,"Green", [DateDiff Last Audit]&amp;lt;=39,"Amber",[DateDiff Last Audit]&amp;gt;=40,"Red")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This works fine when i drag the serial number of the machines into the visual. However, i would like to make a slicer in which i would display "Green", "Amber" and "Red" as options to be picked, and I am stuck there. As we use direct query in our company, i cannot create a seperate table, neither add calculated columns.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anybody know how i can solve my issue using calculated measures only?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:28:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1256444#M20784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1256504#M20786</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , I think in direct query you add table using enter data. It changes the mode to mix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rest of the approach will be like &lt;A href="https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern" target="_blank"&gt;https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:43:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1256504#M20786</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-28T15:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1256895#M20797</link>
      <description>&lt;P&gt;Hi amitchandak,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback! Unfortunatelly, i cannot "enter data", this option is greyed out to me.&lt;/P&gt;&lt;P&gt;For the suggested approach, i would need to create a diconnected table, which i cannot do due to the direct query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other ideas to solve my issue?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 17:52:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1256895#M20797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T17:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259097#M20884</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know, you can use a SQL query as a source for your tables. Here's the query that you should use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;SELECT
    t.Status,
    t.StatusOrder
FROM (
	VALUES
		('Red', 1),
		('Amber', 2),
		('Green', 3)
) AS t([Status], [StatusOrder])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since it does not require any tables from your database, it should work OK. [StatusOrder] is there to be able to sort the statuses correctly, not alphabetically. When you press Get Data, you'll select the source to be your SQL Server, then you'll expand the section Advanced and input your query in the box. Easy. I've checked it and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 13:18:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259097#M20884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259424#M20903</link>
      <description>&lt;P&gt;Hi daxer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. Unfortunatelly, i dont have access to SQL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My challenge is to build the slicer based only on calculated measures. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 13:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259424#M20903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T13:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259472#M20906</link>
      <description>If you don't have access to import data into your model... then how do you get the data in the first place? Your challenge is not a challenge. You simply CANNOT create a slicer from measures. Simple as that. You have to create a table, be it through import or a calculated one. Nothing else will do. Sorry.</description>
      <pubDate>Wed, 29 Jul 2020 14:10:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259472#M20906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259476#M20907</link>
      <description>&lt;P&gt;Hi daxer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a pre-set query from HANA, i just pick a table from there. does that make it clear for you?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 14:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259476#M20907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259581#M20922</link>
      <description>OK. You should have stated this at the beginning... If you can't use SQL or some other query language, then you cannot create a slicer. You have to ask the admins of your system to create the table in the source for you.</description>
      <pubDate>Wed, 29 Jul 2020 15:17:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259581#M20922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T15:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Swicth Function outcome used as slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259592#M20925</link>
      <description>&lt;P&gt;Alright, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 15:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Swicth-Function-outcome-used-as-slicer/m-p/1259592#M20925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T15:28:00Z</dc:date>
    </item>
  </channel>
</rss>

