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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Tarek78210
Frequent Visitor

Help to create a data model with Budget and Actuals

Hi All,

 

I want to create a data model for the following:

 

I extract data from a software giving me the revenu for each product and customer. I have also a budget file I built that gives me the budgeted revenue per customer and product.

 

I want to create 4 tables:

 

- Product Group table that give all the possible product group in the revenue and budget : sometimes, we have a product group in the budget we haven't sold yet in the actuals. It is also true the other way. We sometimes sell products that were not budgeted.

 

- Customer Table gives all the possible customers in the revenue and budget. We have budgeted customers where no revenue is made and therefore will not appear in the actuals extract. The other way around is true when we have new customers not budgeted.

 

- Fact Table: where I have the extract from the tool giving me the actuals

- Fact Budget: my excel file showing the detailed budgeted revenu per customer and product

 

My biggest challenge is to create the product and customer tables . I want to base my liste of unique value from the actuals table AND the budget table to make sure I use all possible items.

 

Could you please help me with this?

 

DATA MODEL TABLES.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Tarek78210 

You can create two blank queries and input the following code to advanced editor 

Product

let
    actual_product=Table.FromList(actuals[ProductGroup]),
    budget_product=Table.FromList(budget[ProductGroup]),
    _combine=Table.Combine({actual_product,budget_product}),
    _distinct=Table.Distinct(_combine)
in
    _distinct

Output

vxinruzhumsft_0-1708913210729.png

Customer

let
    actual_custromer=Table.FromList(actuals[Customer]),
    budget_customer=Table.FromList(budget[Customer]),
    _combine=Table.Combine({ actual_custromer,budget_customer}),
    _distinct=Table.Distinct(_combine)
in
    _distinct

 Output

vxinruzhumsft_1-1708913229070.png

 

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
freshBI
New Member

We would be happy to help out @Tarek78210! Check us out at https://www.freshbi.com/

Anonymous
Not applicable

Hi @Tarek78210 

You can create two blank queries and input the following code to advanced editor 

Product

let
    actual_product=Table.FromList(actuals[ProductGroup]),
    budget_product=Table.FromList(budget[ProductGroup]),
    _combine=Table.Combine({actual_product,budget_product}),
    _distinct=Table.Distinct(_combine)
in
    _distinct

Output

vxinruzhumsft_0-1708913210729.png

Customer

let
    actual_custromer=Table.FromList(actuals[Customer]),
    budget_customer=Table.FromList(budget[Customer]),
    _combine=Table.Combine({ actual_custromer,budget_customer}),
    _distinct=Table.Distinct(_combine)
in
    _distinct

 Output

vxinruzhumsft_1-1708913229070.png

 

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors