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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Error in totaling of Table

Hi,    
     
I am beginner, I am using Table and Sample Data is given below;
     
     
     
Data for Plan:    
     
Field/Well NameConcessionMonth Plan MBOPD  
ABCXYZ-1Jan-20               1.11 
ABCXYZ-1Feb-20               1.51 
ABCXYZ-1Mar-20               2.20 
ABCXYZ-1Apr-20               1.46 
ABCXYZ-1May-20               1.30 
ABCXYZ-1Jun-20               1.16 
ABCXYZ-1Jul-20               1.05 
ABCXYZ-1Aug-20               0.95 
ABCXYZ-1Sep-20               0.86 
ABCXYZ-1Oct-20               0.79 
ABCXYZ-1Nov-20               0.72 
ABCXYZ-1Dec-20               0.66 
Total                13.76 
     
     
     
Data for Actual:    
     
Field/Well NameConcessionMonth Actual MBOPD  
ABCXYZ-1Jan-20                  1.11 
ABCXYZ-1Feb-20                  1.51 
ABCXYZ-1Mar-20                  2.20 
ABCXYZ-1Apr-20                  2.18 
ABCXYZ-1May-20                  1.74 
ABCXYZ-1Jun-20                  1.47 
ABCXYZ-1Jul-20                  1.41 
ABCXYZ-1Aug-20                  1.21 
ABCXYZ-1Sep-20                  1.03 
ABCXYZ-1Oct-20                  0.90 
ABCXYZ-1Nov-20                  0.78 
ABCXYZ-1Dec-20                  0.68 
Total                  16.22 
     
     
     
Totals below the Data are just for your ease, while uploading data in Power BI have excluded Total Row.
     
     
     
Relationship column is "Field/Well Name" in above DATA. 
     
     
     
When I filter table on May-20 it gives;  
     
Field/Well NameConcessionMonthPlan MBOPDActual MBOPD
ABCXYZ-1May1.316.22
     
     
     
1.3 is correct, but in last column instead of 16.22 it should be 1.74
     
     
     
I want result based on filter.    
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

I know it is frustating to see the data not getting displayed as per your requirement.

 

So, What is happening here is that first table one record joins with all the records of 2nd table as the join is on Field/Well Name resulting in the total sum of 16.22.

I would create a key column in both the tables as

Key_col = CONCATENATE(CONCATENATE(Field/Well Name, Concession), Month)

and join on this key column.

 

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

Regards,
Pranit

View solution in original post

4 REPLIES 4
Pragati11
Super User
Super User

Hi @Anonymous ,

 

What is the direction of your relationship? If it is single, try making it bi-directional. It should work.

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

HI @Pragati11 , It was both ways.
Anonymous
Not applicable

Hi @Anonymous 

 

I know it is frustating to see the data not getting displayed as per your requirement.

 

So, What is happening here is that first table one record joins with all the records of 2nd table as the join is on Field/Well Name resulting in the total sum of 16.22.

I would create a key column in both the tables as

Key_col = CONCATENATE(CONCATENATE(Field/Well Name, Concession), Month)

and join on this key column.

 

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

Regards,
Pranit

Anonymous
Not applicable

Thank you very much pranit828, this has worked.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors