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
Anonymous
Not applicable

Recalculate SUM in multiple dimensions on row level

Dears,

 

I need help regarding reporting according to target execution. I am trying to set up table by client and his target execution for each producer. Target is measured as sales.

 

I have 4 tables described below (with relationships)

1. tClients

client_id

2. tTarget

client_id, producer, target

3. tSales

client_id, product_id, quantity

4. tProducts

product_id, producer, price

 

Relationships

tClients.client_id 1:* tTarget.client_id

tClients.client_id 1:* tSales.client_id

tProducts.product_id 1:* tSales.product_id

 

Table I with results I need to create:

Client_id | Producer | Sales Value | Target | Target Execution

Sales Value = quantity * price (summarized per first client then producer and calculated on product level)

Target = each Client has different Target per Producer

Target execution = Sales Value / Target

 

Can anyone help me creating formulas for Sales Value, Target, Target Execution? Should it be done by measures or additional columns in my datasets?

 

Much appreciated,

Kind Regards

2 REPLIES 2
amitchandak
Super User
Super User

what is producer here in the target.  why it does have a role in sales. (Why it is not present in sales and present only in Target)

 

This calculation should be a column

Sales Value = quantity * price (summarized per the first client then producer and calculated on product level)

Multiplication should be at line level

Column means = A*B and then use as sum(A*B)

the measure means Sum(A) * Sum(b)

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

It means that client has to buy certain Value of Products from Producer X.

 

I would imagine it like below:

ClientProducerSales ValueTargetTarget Execution

1

X15020075%

1

Y100100100%

1

Z200150125%

2

X250250100%

2

Y300200150%

3

X45050090%

 

Does that explain it properly?

 

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