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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sgeheeb
Helper II
Helper II

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.