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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Kelly_Zhu
Helper III
Helper III

Create a Calculated Column/measure from Different Tables

Hi Everyone,

 

The relationship between 2 tables is 1: many.

Automated.PNG

How can I get the table I would like? Thank you in advance!

 

6 REPLIES 6
Zubair_Muhammad
Community Champion
Community Champion

hI @Kelly_Zhu

 

Use this calculated column in Table A

 

G =
DIVIDE ( Table A[E], RELATED ( Table 2[F] ) )

Thanks a lot!

However, after I input "Related", I can't input the column name then. This may be caused by "one to many" relationship.

Could you have any advices to solve this? Thanks!

Hi @Kelly_Zhu

 

RELATED is used in Many-Side Table to pull information from ONE-SIDE. Its like a VLOOKUP

 

It works fine when I used your sample data. See the image below

 

RELATED.jpg

 

 

Thanks a lot!

I used this as a measure before, so it doesn't work.

 

Now it works well.

However, I meet a new problem now. Could you help me to solve this? I would like to get the column/measure filled in grey.

Thank you in advance!

Upper Limit.PNG

Hi @Kelly_Zhu

 

Try this calculated column

 

=
IF (
    TableA[GROUP] <> "Total",
    RELATED ( Table2[F] ),
    IF (
        TableA[TOTAL GROUP] = "One",
        CALCULATE (
            SUM ( Table2[F] ),
            FILTER ( ALL ( Table2 ), Table2[GROUP] = "A" || Table2[GROUP] = "B" )
        ),
        IF (
            TableA[TOTAL GROUP] = "Two",
            CALCULATE ( SUM ( Table2[F] ), FILTER ( ALL ( Table2 ), Table2[GROUP] = "C" ) )
        )
    )
)

Thanks for your reply!

 

I am sorry for confusing explain.

 

Actually, the data I provided is an example and left table is the table I want to display on the report.

 

So there is no "Total" in any coolumns and more than 2 total group actually.

 

Could you please give me other suggestions?

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors