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
redcof
Advocate II
Advocate II

Using reference table

I need help using a reference table.

 

I have these in my Model:

redcof_0-1652297024701.png

I want to add a "Description" column to billing-mrc table and to billing-nrc table.

The following are not a real formulas, just the logic of what I want to do.

For: billing-mrc table new Description column:

If (billing-mrc [Item Code] = Table1 [Item Code] , Table1[Descritpion] , billing-mrc{Item Code])

For billing-nrc table new Description column:

If (billing-nrc [Item Code] = Table1 [Item Code] , Table1[Descritpion] , billing-nrc{Item Code])

 

I really appreciate your time and assistance.

1 ACCEPTED SOLUTION
PabloDeheza
Solution Sage
Solution Sage

Hi @redcof !
Maybe using the RELATED function solves your problem.
RELATED( Table1[Description] )
Let me know if that helps!

View solution in original post

3 REPLIES 3
PabloDeheza
Solution Sage
Solution Sage

Hi @redcof !
Maybe using the RELATED function solves your problem.
RELATED( Table1[Description] )
Let me know if that helps!

That works great for the ones that have matches.  The rest are left blank.  That may be OK for now.  I will let the person with the data know about the missing values.

 

Thanks!

Well, you should be able to solve that with an IF statement:

VAR _Related =
    RELATED( Table1[Description] )
VAR _Result =
    IF(
        ISBLANK( _Related ),
        billing-mrc [Item Code],
        _Related
    )
RETURN
    _Result

 

If this solves your problem please mark this answer as solution.

Thanks! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.