<?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 Help with Expenses by County Solution in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3034781#M103860</link>
    <description>&lt;P&gt;I am trying to get my expenses broke out by County based on my Service Categories and I am having trouble. I will try to be detailed as possible, it is a bit complicated (or maybe I am just making it that way).&lt;/P&gt;&lt;P&gt;First my Service Units are in a table called Combined, and my expenses are in a table called MIP Actual Ledger. They are connected by a calendar index table.&lt;/P&gt;&lt;P&gt;My combined table is also connected to a County Index table, as some services outside of our service area need to be listed as Other.&lt;/P&gt;&lt;P&gt;I have tried several different ways to get what I need with no success. My units (Units Served = SUM(Combined[Units])) are split into categories ‘Combined’[Service], and also by ‘County Index’[County Name]. My Expenses (Expenses = SUMX(Filter('MIP GL Code','MIP GL Code'[GL Type] = "EXP"),'MIP Actual Ledger'[Total Actual Amount])) are grouped by GL or Program Code into different services by conditional column(see end for conditions).&lt;/P&gt;&lt;P&gt;Ideally, I would like to take the total units by service and divide then by the total units by service to get a unit rate. Then I would like to take that unit rate, by service and multiply it by the total units by county by service. I need these to be able to automatically update when I change data ranges and such. I am not even sure it is possible.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column Conditions:&lt;/P&gt;&lt;P&gt;= Table.AddColumn(#"Renamed Columns", "Service", each if [Program Code] = "234" then "Guardianship" else if [Program Code] = "231" then "Case Management" else if [Program Code] = "230" then "Case Management" else if [Program Code] = "235" then "Case Management" else if [Program Code] = "232" then "Case Management" else if [Program Code] = "233" then "Case Management" else if [GL Code] = "57092" then "Adaptive Aid" else if [GL Code] = "57331" then "Adaptive Aid" else if [GL Code] = "57139" then "Adaptive Aid" else if [GL Code] = "57330" then "Adaptive Aid" else if [GL Code] = "57130" then "Adaptive Aid" else if [Program Code] = "245" then "Caregiver/Respite" else if [Program Code] = "217" then "Caregiver/Respite" else if [Program Code] = "256" then "Health &amp;amp; Wellness" else if [GL Code] = "57310" then "Home Delivered Meals" else if [GL Code] = "57110" then "Home Delivered Meals" else if [Program Code] = "241" then "Information &amp;amp; Assistance" else if [GL Code] = "57250" then "In-Home Services" else if [GL Code] = "57050" then "In-Home Services" else if [GL Code] = "57260" then "In-Home Services" else if [GL Code] = "57060" then "In-Home Services" else if [GL Code] = "57010" then "In-Home Services" else if [GL Code] = "57280" then "In-Home Services" else if [GL Code] = "57080" then "In-Home Services" else if [GL Code] = "57269" then "In-Home Services" else if [GL Code] = "57071" then "In-Home Services" else if [GL Code] = "57272" then "In-Home Services" else if [GL Code] = "57072" then "In-Home Services" else if [GL Code] = "57320" then "In-Home Services" else if [Program Code] = "214" then "Legal Assistance" else if [Program Code] = "215" then "Ombudsman" else if [Program Code] = "255" then "Other Services" else if [Program Code] = "259" then "Other Services" else if [Program Code] = "258" then "Other Services" else if [Program Code] = "221" then "Transportation" else if [Program Code] = "500" then "Transportation" else if [Program Code] = "271" then "Congregate" else if [GL Code] = "57011" then "In-Home Services" else [Program Code])&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 19:46:18 GMT</pubDate>
    <dc:creator>jdixon</dc:creator>
    <dc:date>2023-01-20T19:46:18Z</dc:date>
    <item>
      <title>Help with Expenses by County Solution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3034781#M103860</link>
      <description>&lt;P&gt;I am trying to get my expenses broke out by County based on my Service Categories and I am having trouble. I will try to be detailed as possible, it is a bit complicated (or maybe I am just making it that way).&lt;/P&gt;&lt;P&gt;First my Service Units are in a table called Combined, and my expenses are in a table called MIP Actual Ledger. They are connected by a calendar index table.&lt;/P&gt;&lt;P&gt;My combined table is also connected to a County Index table, as some services outside of our service area need to be listed as Other.&lt;/P&gt;&lt;P&gt;I have tried several different ways to get what I need with no success. My units (Units Served = SUM(Combined[Units])) are split into categories ‘Combined’[Service], and also by ‘County Index’[County Name]. My Expenses (Expenses = SUMX(Filter('MIP GL Code','MIP GL Code'[GL Type] = "EXP"),'MIP Actual Ledger'[Total Actual Amount])) are grouped by GL or Program Code into different services by conditional column(see end for conditions).&lt;/P&gt;&lt;P&gt;Ideally, I would like to take the total units by service and divide then by the total units by service to get a unit rate. Then I would like to take that unit rate, by service and multiply it by the total units by county by service. I need these to be able to automatically update when I change data ranges and such. I am not even sure it is possible.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column Conditions:&lt;/P&gt;&lt;P&gt;= Table.AddColumn(#"Renamed Columns", "Service", each if [Program Code] = "234" then "Guardianship" else if [Program Code] = "231" then "Case Management" else if [Program Code] = "230" then "Case Management" else if [Program Code] = "235" then "Case Management" else if [Program Code] = "232" then "Case Management" else if [Program Code] = "233" then "Case Management" else if [GL Code] = "57092" then "Adaptive Aid" else if [GL Code] = "57331" then "Adaptive Aid" else if [GL Code] = "57139" then "Adaptive Aid" else if [GL Code] = "57330" then "Adaptive Aid" else if [GL Code] = "57130" then "Adaptive Aid" else if [Program Code] = "245" then "Caregiver/Respite" else if [Program Code] = "217" then "Caregiver/Respite" else if [Program Code] = "256" then "Health &amp;amp; Wellness" else if [GL Code] = "57310" then "Home Delivered Meals" else if [GL Code] = "57110" then "Home Delivered Meals" else if [Program Code] = "241" then "Information &amp;amp; Assistance" else if [GL Code] = "57250" then "In-Home Services" else if [GL Code] = "57050" then "In-Home Services" else if [GL Code] = "57260" then "In-Home Services" else if [GL Code] = "57060" then "In-Home Services" else if [GL Code] = "57010" then "In-Home Services" else if [GL Code] = "57280" then "In-Home Services" else if [GL Code] = "57080" then "In-Home Services" else if [GL Code] = "57269" then "In-Home Services" else if [GL Code] = "57071" then "In-Home Services" else if [GL Code] = "57272" then "In-Home Services" else if [GL Code] = "57072" then "In-Home Services" else if [GL Code] = "57320" then "In-Home Services" else if [Program Code] = "214" then "Legal Assistance" else if [Program Code] = "215" then "Ombudsman" else if [Program Code] = "255" then "Other Services" else if [Program Code] = "259" then "Other Services" else if [Program Code] = "258" then "Other Services" else if [Program Code] = "221" then "Transportation" else if [Program Code] = "500" then "Transportation" else if [Program Code] = "271" then "Congregate" else if [GL Code] = "57011" then "In-Home Services" else [Program Code])&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 19:46:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3034781#M103860</guid>
      <dc:creator>jdixon</dc:creator>
      <dc:date>2023-01-20T19:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expenses by County Solution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3035173#M103896</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="502299" data-lia-user-login="jdixon" class="lia-mention lia-mention-user"&gt;jdixon&lt;/a&gt;&amp;nbsp;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 06:24:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3035173#M103896</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-01-21T06:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expenses by County Solution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3037765#M104064</link>
      <description>&lt;P&gt;I will see what I can do, but it might take me a couple of days to come up with something. As I am sure you can relate, we have a lot of things going on at the moment. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 13:16:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3037765#M104064</guid>
      <dc:creator>jdixon</dc:creator>
      <dc:date>2023-01-23T13:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Expenses by County Solution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3045923#M104676</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478098" data-lia-user-login="Mahesh0016" class="lia-mention lia-mention-user"&gt;Mahesh0016&lt;/a&gt;&amp;nbsp;- here is the sample report -&amp;nbsp;&lt;A href="https://app.powerbi.com/groups/me/reports/c10495c2-f926-4f38-910a-e033e39bb137/ReportSection204c74d47ac5a31616d5" target="_blank"&gt;https://app.powerbi.com/groups/me/reports/c10495c2-f926-4f38-910a-e033e39bb137/ReportSection204c74d47ac5a31616d5&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I am going for:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 18:58:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-Expenses-by-County-Solution/m-p/3045923#M104676</guid>
      <dc:creator>jdixon</dc:creator>
      <dc:date>2023-01-26T18:58:22Z</dc:date>
    </item>
  </channel>
</rss>

