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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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)

 

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.