<?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: Need to change slicer values from 1,0 to &amp;quot;Y&amp;quot; &amp;quot;N&amp;quot; by using DAX in new column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413025#M63643</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370305" data-lia-user-login="clp7285" class="lia-mention lia-mention-user"&gt;clp7285&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try the strict equal "==". No need to have the 2nd argument of IF as by default it returns blank.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;ICM Managed Flag =
IF (
    ICM_Weekly_Data[ICM Managed] == 1,
    "Y",
    IF ( ICM_Weekly_Data[ICM Managed] == 0, "N" )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 23 Mar 2022 16:44:20 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-03-23T16:44:20Z</dc:date>
    <item>
      <title>Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2410689#M63495</link>
      <description>&lt;P&gt;I currently have a slicer called ICM Managed Flag in my Power BI Report that is text data type using a field called ICM Managed which is whole number data type using the values of 1 and 0.&amp;nbsp; I need to replace the values of 1 to "Y" for yes and 0 to "N" for No.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a hard time getting the whole numbers replaced by "Y" "N" text and I also need a "Blank value." I can't seem to change the data type so they are both text.&amp;nbsp; I get the message DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I decided to use the SWITCH function with FORMAT.&lt;/P&gt;&lt;P&gt;VALUE function can only be used one time so I'm not sure that would work.&lt;/P&gt;&lt;P&gt;This is the DAX expression I created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ICM Managed Flag = SWITCH(TRUE(),&lt;/P&gt;&lt;P&gt;ICM_Weekly_Data[ICM Managed]=1,FORMAT(ICM_Weekly_Data[ICM Managed],"Y"),&lt;/P&gt;&lt;P&gt;ICM_Weekly_Data[ICM Managed]=0,FORMAT(ICM_Weekly_Data[ICM Managed],"N"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's still returning numbers. Now instead of returning 1 or 0 it is returning 365 or 0 instead of Y or N. Is SWITCH the right function to use? I don't know how to fix this to return "Y" or "N" or to replace values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 21:47:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2410689#M63495</guid>
      <dc:creator>clp7285</dc:creator>
      <dc:date>2022-03-22T21:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2410715#M63499</link>
      <description>&lt;P&gt;Would IF Function work better than SWITCH in this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 22:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2410715#M63499</guid>
      <dc:creator>clp7285</dc:creator>
      <dc:date>2022-03-22T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2411026#M63509</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370305" data-lia-user-login="clp7285" class="lia-mention lia-mention-user"&gt;clp7285&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SWITCH is actually IF Else. Are you trying to create new calculated column? If so you can simply use&lt;/P&gt;&lt;LI-CODE lang="php"&gt;CM Managed Flag =
SWITCH (
    TRUE (),
    ICM_Weekly_Data[ICM Managed] = 1, "Y",
    ICM_Weekly_Data[ICM Managed] = 0, "N"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Mar 2022 03:22:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2411026#M63509</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-23T03:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413002#M63638</link>
      <description>&lt;P&gt;I changed this to an IF statement&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ICM Managed Flag = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ICM_Weekly_Data[ICM Managed]&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Y"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ICM_Weekly_Data[ICM Managed]&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"N"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;()))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I'm getting N and Y on my Managed Flag Slicer but not Blank option. The ICM Managed field on Data tab has Select All, Blank, 0, 1. I need to have Blank display on ICM Managed Flag. What is the correct syntax to get Blank to display in dropdown slicer menu?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413002#M63638</guid>
      <dc:creator>clp7285</dc:creator>
      <dc:date>2022-03-23T16:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413025#M63643</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370305" data-lia-user-login="clp7285" class="lia-mention lia-mention-user"&gt;clp7285&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try the strict equal "==". No need to have the 2nd argument of IF as by default it returns blank.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;ICM Managed Flag =
IF (
    ICM_Weekly_Data[ICM Managed] == 1,
    "Y",
    IF ( ICM_Weekly_Data[ICM Managed] == 0, "N" )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:44:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413025#M63643</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-23T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413059#M63645</link>
      <description>&lt;P&gt;Hi tamerj1,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't have Blank = 0&amp;nbsp; as 0 is "N." Is strictly zero ==0 essential the same as =0? Blank needs to mean blank cell, not a cell that has a 0 in it.&amp;nbsp; I think I would need 3 arguments total, one for =1, "Y"&amp;nbsp; =0, "N", one for blank cells.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413059#M63645</guid>
      <dc:creator>clp7285</dc:creator>
      <dc:date>2022-03-23T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413127#M63650</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370305" data-lia-user-login="clp7285" class="lia-mention lia-mention-user"&gt;clp7285&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason DAX sometimes considers nulls as zero and the opposite is true. I thought maybe this is why your code is not retuning blank as there is a possibility that the blanks in your data are considered zero and therefore returns "N". Did you try?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 17:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413127#M63650</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-23T17:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change slicer values from 1,0 to "Y" "N" by using DAX in new column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413167#M63653</link>
      <description>&lt;P&gt;Hi tamerji1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did fix the problem. Thanks so much for your help.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 17:48:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-change-slicer-values-from-1-0-to-quot-Y-quot-quot-N-quot/m-p/2413167#M63653</guid>
      <dc:creator>clp7285</dc:creator>
      <dc:date>2022-03-23T17:48:36Z</dc:date>
    </item>
  </channel>
</rss>

