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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Oscar1
New Member

Calculate % of complition sales vs plan

Hello,

 

I would need some help to create a table that calculates me the % of complition of the sales per month vs the plan (if possible also per year).

 

I  have 2 data sets. The first is the plan of each CFR that works in 1 of the 2 shops per month and year:

 

Month Year ShopCFRPlan
1           2.018  Shop1A1
1           2.018  Shop1B2
1           2.018  Shop1C3
1           2.018  Shop2D4
1           2.018  Shop2E5
1           2.018  Shop2F6
2           2.018  Shop1A2
2           2.018  Shop1B3
2           2.018  Shop1C4
2           2.018  Shop2D5
2           2.018  Shop2E6
2           2.018  Shop2F7

 

The second are the sales per month per CFR:

Month Year CFRSales
1     2.018  A1
1     2.018  B2
1     2.018  C3
1     2.018  D4
1     2.018  E5
1     2.018  F6
2     2.018  A2
2     2.018  B3
2     2.018  C4
2     2.018  D5
2     2.018  E6
2     2.018  F7

 

I connect both of them by a key of year&month&CFR.

 

I would be interested in calculating the % of accomplishment per month (sales/plan) for each of the CFRs, but also for each of the shops and for all the group (the 2 shops together).

In case of the shops and the total group, the plan is adding up all the plan from the CFRs.

 

Thank you!

1 ACCEPTED SOLUTION
Lind25
Resolver I
Resolver I

Hi Oscar

 

You need to create dimension tables for Month, Year, CFR (note: shop is not included).

These can then be related to your Plan and Sales tables.

Measures will then be simple to write and work automatically at any level of detail.

 

Sales plan:= sum(PlanTable[Plan])

Sales actual:= sum(SalesTable[Sales])

Actual / plan:= divide([Sales actual],[Sales plan])

 

Use your dimension tables on your tables / charts rather than the Month / Year / CFR stored in the data tables.

 

View solution in original post

1 REPLY 1
Lind25
Resolver I
Resolver I

Hi Oscar

 

You need to create dimension tables for Month, Year, CFR (note: shop is not included).

These can then be related to your Plan and Sales tables.

Measures will then be simple to write and work automatically at any level of detail.

 

Sales plan:= sum(PlanTable[Plan])

Sales actual:= sum(SalesTable[Sales])

Actual / plan:= divide([Sales actual],[Sales plan])

 

Use your dimension tables on your tables / charts rather than the Month / Year / CFR stored in the data tables.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.