Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jdixon
Regular Visitor

Help with Expenses by County Solution

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).

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.

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.

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).

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.

jdixon_1-1674243960531.png

 

Column Conditions:

= 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 & 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 & 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])

3 REPLIES 3
Mahesh0016
Super User
Super User

@jdixon Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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!

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.