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
sgeheeb
Resolver I
Resolver I

Budget by two different attributes of a single table

Hi, I am having the following issue:

 

I need to implement a budget analysis in Power BI and I am at a bit of a loss on how to do it in this case.

 

The data is just for demonstration purposes and does not add up.

 

I have a fact table:

AmountDateCustomer Key
1002023-01-01    1
2002023-01-01    2
2002023-02-01

    1

 

And a Customer Dimension:

Customer NoCustomer GroupCustomer Sales RepCustomer Key
C1GROUP 1SR 11
C2GROUP 1SR 22
C3GROUP 2SR 13
C4GROUP 3SR 14

 

So far there is no problem. I could create a single level budget (by Group or Sales Rep), or a multi-level budget (e.g. Group -> Customer, Sales Rep -> Customer, Group -> Sales Rep -> Customer) and even add in the date component.

 

However, the result, I am expected to deliver should look like this in a Matrix:

 

Customer SalesBudgetDiff
GROUP 1 10001200-200
 SR 15005000
 SR 2500700-200
GROUP 2 500400100
 SR 1200100100
 SR 23003000
GROUP 3 1000800200
 C 1500400100
 C 3200100100
 C 43003000
Total 25002400100

 

The top level of the hierarchy is always the Group

The second level of the hierarchy is sometimes the Sales Rep, sometimes a Customer, so basically, some Groups are budgeted by Customer, some Groups are budgeted by Sales Reps.

 

I need to come up with a structure for a budget file, into which a someone can enter their budget data. I will then import the budget file into Power BI, connect it to the customer dimension and thus be able to do the comparisons.

 

I am at a bit of a loss on how to do this. I have dealt with ragged hierarchies before, but since this is strictly a two-level hierarchy without empty leaves, etc. I'm not sure if this even qualifies as such.

 

Can it even be done like this? Do I need to create two seperate budgets? Or am I missing something obvious?

 

Thanks!

 

0 REPLIES 0

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.

Top Solution Authors