<?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 What If Parameters for Gender Balance in Company? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-If-Parameters-for-Gender-Balance-in-Company/m-p/4252381#M168408</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some support in ideating a solution to this problem. I have demographic data to work with which shows the following fields:&lt;/P&gt;&lt;P&gt;1. Employee ID&lt;/P&gt;&lt;P&gt;2. Gender (options: Male, Female, Other [Non-Binary and Self-Identifying])&lt;/P&gt;&lt;P&gt;3. Hire Date&lt;/P&gt;&lt;P&gt;4. Termination Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use a what-if parameter similar to this video:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=QXNRseW0R7E" target="_blank"&gt;https://www.youtube.com/watch?v=QXNRseW0R7E&lt;/A&gt;&amp;nbsp;which would allow a dashboard user to view the following DAX measures and parameters:&lt;/P&gt;&lt;P&gt;1. Current Number of Females and % of Population (I have these DAX Measures already)&lt;/P&gt;&lt;P&gt;2. A what-if parameter for 'Target Population' of women as a percentage (e.g. 30% of population to be women)&lt;/P&gt;&lt;P&gt;3. A what-if parameter for 'Target Year' which would allow the user to select the year at which the target population would be achieved&lt;/P&gt;&lt;P&gt;4. A line chart showing the growth/recruitment needed for women to meet that target&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would also like to have a what-if parameter for the male and 'other' populations to take into account population growth rates in other areas which may impact the total population proportion of women but I cannot seem to get this to work esp. in a line chart format. Does anyone have any ideas on approaches to resolve this?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 09:45:59 GMT</pubDate>
    <dc:creator>ErMley</dc:creator>
    <dc:date>2024-10-22T09:45:59Z</dc:date>
    <item>
      <title>What If Parameters for Gender Balance in Company?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-If-Parameters-for-Gender-Balance-in-Company/m-p/4252381#M168408</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some support in ideating a solution to this problem. I have demographic data to work with which shows the following fields:&lt;/P&gt;&lt;P&gt;1. Employee ID&lt;/P&gt;&lt;P&gt;2. Gender (options: Male, Female, Other [Non-Binary and Self-Identifying])&lt;/P&gt;&lt;P&gt;3. Hire Date&lt;/P&gt;&lt;P&gt;4. Termination Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use a what-if parameter similar to this video:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=QXNRseW0R7E" target="_blank"&gt;https://www.youtube.com/watch?v=QXNRseW0R7E&lt;/A&gt;&amp;nbsp;which would allow a dashboard user to view the following DAX measures and parameters:&lt;/P&gt;&lt;P&gt;1. Current Number of Females and % of Population (I have these DAX Measures already)&lt;/P&gt;&lt;P&gt;2. A what-if parameter for 'Target Population' of women as a percentage (e.g. 30% of population to be women)&lt;/P&gt;&lt;P&gt;3. A what-if parameter for 'Target Year' which would allow the user to select the year at which the target population would be achieved&lt;/P&gt;&lt;P&gt;4. A line chart showing the growth/recruitment needed for women to meet that target&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would also like to have a what-if parameter for the male and 'other' populations to take into account population growth rates in other areas which may impact the total population proportion of women but I cannot seem to get this to work esp. in a line chart format. Does anyone have any ideas on approaches to resolve this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:45:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-If-Parameters-for-Gender-Balance-in-Company/m-p/4252381#M168408</guid>
      <dc:creator>ErMley</dc:creator>
      <dc:date>2024-10-22T09:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: What If Parameters for Gender Balance in Company?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-If-Parameters-for-Gender-Balance-in-Company/m-p/4253172#M168462</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 21:57:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-If-Parameters-for-Gender-Balance-in-Company/m-p/4253172#M168462</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-22T21:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: What If Parameters for Gender Balance in Company?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-If-Parameters-for-Gender-Balance-in-Company/m-p/4261673#M168903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="769254" data-lia-user-login="ErMley" class="lia-mention lia-mention-user"&gt;ErMley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I don't know what your data looks like, I tested it using simple data and here is my solution, hope it helps.&lt;BR /&gt;If this doesn't work for you, please share some sample data and explain it so we can understand your problem better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My test data like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a calendar table with the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DateTable = 
ADDCOLUMNS(
    CALENDAR(DATE(2020,1,1), DATE(2025,12,31)),
    "Year", YEAR([Date])
)&lt;/LI-CODE&gt;
&lt;P&gt;Select New Parameter in the Modeling tab:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create the following measures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TotalPopulation = 
CALCULATE(
    COUNTROWS('Table'), 
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Hire Date] &amp;lt;= MAX('DateTable'[Date]) &amp;amp;&amp;amp;
        (ISBLANK('Table'[Termination Date]) || 'Table'[Termination Date] &amp;gt; MAX('DateTable'[Date]))
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;FemalePopulation = 
CALCULATE(
    COUNTROWS('Table'), 
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Gender] = "Female" &amp;amp;&amp;amp;
        'Table'[Hire Date] &amp;lt;= MAX('DateTable'[Date]) &amp;amp;&amp;amp;
        (ISBLANK('Table'[Termination Date]) || 'Table'[Termination Date] &amp;gt; MAX('DateTable'[Date]))
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;FemaleTargetPopulation = [TotalPopulation] * 'Female Target Percentage'[Female Target Percentage Value]  / 100&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;FemaleNeedIncreased = [FemaleTargetPopulation] - [FemalePopulation]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Repeat the above to create parameters and measures for Male and Other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a Line Chart with the Calendar table “Year” field as the X-axis and the measures of the number of people to be increased as the Y-axis:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jarvis Tang&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 06:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-If-Parameters-for-Gender-Balance-in-Company/m-p/4261673#M168903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-29T06:54:39Z</dc:date>
    </item>
  </channel>
</rss>

