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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RAKESH1986
Helper II
Helper II

how to show difference of two different table column

hi,

I have these 4 different tables and currently no relationship between these 4..  I need to get the below result from those 4 tables..could you help me with what join I have to make and how to get the difference in a column or a measure.

 

output table  
ProgressWeeknoDisciplineDifference
1civil & structural(0.02-0-02)
2civil & structural(0.05-0-05)
3civil & structural(0.09-0-07)
4civil & structural(0.12-0-013)
   

you may consider aw01= pw01, aw02= pw02, etcccc

 

existing 4 tables I have 

 

RAKESH1986_0-1674201426111.png

 

 

2 REPLIES 2
Adescrit
Impactful Individual
Impactful Individual

Hi @RAKESH1986 ,

 

You should create a model as follows:

  • Join Table4 to Table 2 on the columns Dataweek = EARLY_PW_WEEK
  • Join Table4 to Table 1 on the columns AW_WEEK_NO = EARLY_AW_WEEK
  • Join Table3 to 2 on the columns Discipline.
  • Join Table3 to 2 on the columns Discipline.

 

In your table visual add the fields 

  • ProgressWeekNo from table4
  • Discipline from table3

Create this measure:

Difference = 
VAR __Table2 =  MAX( 'Table2'[PW_EARLY_BASELINE] )
VAR __Table1 =  MAX( 'Table1'[AW_EARLY_BASELINE] )
RETURN
    __Table2 - __Table1

 

You can add this measure to your table.


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

@Adescrit  thanks for the help.  The joined you mentioned is working fine and I have added the new measure in table 4 but the measured value has some problems.  This may be due to no relationship between table 3 and table 4 or another problem.

 

it should also consider the discipline-specific value from table 3 and the same discipline value from table 4 and show the difference.  

 

RAKESH1986_0-1674556320317.png

pls help me to resolve this issue.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors