<?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: Get a percentage based on a daily goal in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3030103#M103517</link>
    <description>&lt;P&gt;I dont know how to do it in dax but if you go to power query, the goals table, you can add 2 columns , 1 is a starting date and the second is today for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The create another new column that lists with the formula&lt;/P&gt;&lt;P&gt;{Number.From([start date])..Number.From([Today])}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Them press on the new column header arrow and chose expand to new rows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then change type to date and rename it to date and you can delete start dste column and today column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now just create a relationship between your dste table date and goal table date and whatever you choose the lebgth of dates it will sum up but make sure to change the formula of goals to sum instead of max&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 02:33:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-19T02:33:27Z</dc:date>
    <item>
      <title>Get a percentage based on a daily goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3026861#M103250</link>
      <description>&lt;P&gt;I have two simple worksheets in Excel that I am loading into Power BI Desktop.&amp;nbsp; The first worksheet is an aggregated table aggregated encounters per user per day:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The second is a goals sheet that each user needs to meet per day:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have connected the two "tables" in the Desktop based on the User.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to get a percentage value if a user had any encounters on a given day.&amp;nbsp; Example would be if the date filtered was 1/3/2023 I need AMGRAUBNER to show 17 in the AcctCounts column and 34% in a percentage column in a table visual.&amp;nbsp; All users with encounters for that day would need to be in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second day using PowerBI so any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 20:03:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3026861#M103250</guid>
      <dc:creator>rconway</dc:creator>
      <dc:date>2023-01-17T20:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage based on a daily goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3027079#M103262</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="500427" data-lia-user-login="rconway" class="lia-mention lia-mention-user"&gt;rconway&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;you can find the below pbix file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!Ag9tIyk2ofNRjm9wJRUIzsUQ9GsY?e=Hi0tVu" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!Ag9tIyk2ofNRjm9wJRUIzsUQ9GsY?e=Hi0tVu&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) create relationship between dimtable and first table by date&lt;BR /&gt;2) create relationship between first table users and goal table users&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;3) create a measure for sum of count column&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum = calculate(sum(table1[count]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;4)create a measure for goal of each user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Goal By User = Calculate(max(goaltable[goal]),allexcept(goaltable,goaltable[users]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) craete a divide measure to get percentage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Percentage = DIVIDE([Sum],[Goal By User],0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;6) add users to table, and your 3 measures and add date from dimdate to a slicer and there you got it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i helped you solve this problem, a kudos is appreciated and accept this post as solution&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 22:34:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3027079#M103262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-17T22:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage based on a daily goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3029290#M103449</link>
      <description>&lt;P&gt;Thank you so much.&amp;nbsp; The majority of what I am wanting works now.&amp;nbsp; I have added a Hierarchical Slicer visual and can now choose by Year/Month/Day.&amp;nbsp; The only thing I would like is to somehow update the Goal_by_User and Percentage column to show correct values above the lowest level (Day).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if a User had encounters for multiple days in a month, say 5 days, and the daily goal is 50 then the Goal_by_User column would show 250 instead of 50 and the Percentage column would update to the correct Percentage.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 17:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3029290#M103449</guid>
      <dc:creator>rconway</dc:creator>
      <dc:date>2023-01-18T17:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get a percentage based on a daily goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3030103#M103517</link>
      <description>&lt;P&gt;I dont know how to do it in dax but if you go to power query, the goals table, you can add 2 columns , 1 is a starting date and the second is today for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The create another new column that lists with the formula&lt;/P&gt;&lt;P&gt;{Number.From([start date])..Number.From([Today])}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Them press on the new column header arrow and chose expand to new rows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then change type to date and rename it to date and you can delete start dste column and today column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now just create a relationship between your dste table date and goal table date and whatever you choose the lebgth of dates it will sum up but make sure to change the formula of goals to sum instead of max&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 02:33:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-a-percentage-based-on-a-daily-goal/m-p/3030103#M103517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-19T02:33:27Z</dc:date>
    </item>
  </channel>
</rss>

