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! Request now

Reply
saranp780
Helper III
Helper III

How can I calculate data from different tables?

Hello. I'm really new to Power BI. I want to know about "How can I calculate data from different tables?".

 

If I had data like this

 

Table A 

PositionUsernameYearCounterPeak
ManagerACC0012017314
Acc. staffACC00220172015

This table maintains in Aug.2017.

 

Table B

PositionUsernameYearCounterPeak
ManagerACC001201745
Acc. staffACC00220172511

 This table maintains in Sep.2017

My question is I want to subtract column "counter" table b(counter)-table a(counter).

 

So how the formula should I fill in? (Power BI desktop) 

 

3 REPLIES 3
fhill
Resident Rockstar
Resident Rockstar

Is Username a unique value in each table?  (Would it appear twice if there was multiple years of data?)  We need something to logically link 'Relationship' the two tables together.  




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Could you please explain an unique value? If I have to change my data, how to change?

 

Best regard

Here's some information on defining Relationships between tables:

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-create-and-manage-relationships/

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




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