<?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: Gender in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2924385#M95994</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;What is the data type in the column? text or numeric?&lt;BR /&gt;Show the error you are getting, preferably with a screenshot&lt;BR /&gt;look at the attached file, maybe you will understand where you made a mistake&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 12:05:27 GMT</pubDate>
    <dc:creator>DimaMD</dc:creator>
    <dc:date>2022-11-23T12:05:27Z</dc:date>
    <item>
      <title>Gender</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2921610#M95815</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Hello !

I need help categorizing different numbers that tell what gender it is.

Ex:
0, woman
1, man
2, woman
3, man

etc

Is there any good way to create a new variable for it?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 12:30:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2921610#M95815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T12:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Gender</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2921898#M95827</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; try it&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH(
    TRUE(),
    OR([#] = 0, [#] = 2), "woman",
    OR([#] = 1, [#] = 3), "man",
    "etc"
)   &lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:01:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2921898#M95827</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2022-11-22T14:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Gender</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2923844#M95948</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Hello again!

I don't really know what I'm doing wrong, but it doesn't seem to work, I've tried several different options

Gender2 = SWITCH(TRUE(),
OR(Data_renter[Gender_number] = 0, Data_renter[Gender_number]=2), "Female",
OR(Data_renter[Gender_number] = 4, Data_renter[Gender_number]=6), "Female",
OR(Data_renter[Gender_number] = 8, Data_renter[Gender_number]=10), "Female",
OR(Data_renter[Gender_number] = 1, Data_renter[Gender_number]=3), "Male",
OR(Data_tenant[Gender_number] = 5, Data_tenant[Gender_number]=7), "Male",
OR(Data_renter[Gender_number] = 9, Data_renter[Gender_number]=11), "Male")&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;What am I doing wrong ?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2022 08:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2923844#M95948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-23T08:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Gender</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2924385#M95994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;What is the data type in the column? text or numeric?&lt;BR /&gt;Show the error you are getting, preferably with a screenshot&lt;BR /&gt;look at the attached file, maybe you will understand where you made a mistake&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 12:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2924385#M95994</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2022-11-23T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Gender</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2924444#M95997</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;See also this file, I optimized the measure and gave 2 examples&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 12:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Gender/m-p/2924444#M95997</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2022-11-23T12:39:00Z</dc:date>
    </item>
  </channel>
</rss>

