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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
M_SBS_6
Helper V
Helper V

Sum up data

Hi, 

 

I have this field (surv_quantity) but a job level in my table surv_jobs

 

I have this field (surv_out) at a sub job level in my table surv_sub_job

 

What I need to do it take the surv_jobs.surv_quantity - surv_sub_jobs.surv_value

The problem I have is that the value surv_quantity double counts as it see 2 jobs as it has 2 sub jobs. 

 

Example-

Surv_id=10

surv_quantity I have a total value of 30,000

 

However, if I look at the detail whereby job 

Surv_id=10

Surv_sub_id=12 value=30000

Surv_sub_id=23 value=30000

 

By having 30000 twice, it's scewing the numbers as it thinks for that job, the value is 60000 when in actual fact, its 30000. 

Any idea how I can get around this please so it only takes the one value? 

1 ACCEPTED SOLUTION

pls check if this is what you want





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
ryan_mayu
Super User
Super User

@M_SBS_6 

then what's the expected output? 12 is 15000 and 23 is 15000?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Yes, that's right 

pls check if this is what you want





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ryan_mayu yes, essentially that's what I need thanks 

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




grantsamborn
Solution Sage
Solution Sage

Hi @M_SBS_6 

This looks like an interesting problem

Is there any way you can provide data that demonstrates the problem with sensitive data removed?  (a pbix would be preferable)

Also, please provide expected results and an explanation of any intermediary steps needed in the calculation.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.