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
sure19
Helper II
Helper II

Lookup from another column only for one criteria all others refer to one column from same table

I have two KPI tables.  one has KPI which has a list of KPI's, KPI Type which has a list of types such as RTG, QC etc.  and KPI Values which has the value for each of the KPI and type.  but when you select QC, it should not take the value from KPI_Value but it should fetch the data from another table where there is a column called QC moves.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @sure19,

You can use the following measure formula to extract table records and filter and calcite on other KPI table:

Measure =
CALCULATE (
    SUM ( TP_ENG_KPI[QC MOVES] ),
    FILTER (
        ALLSELECTED ( TP_ENG_KPI ),
        [TPA LOCATION NAME] IN VALUES ( OPS_YARD_MOVES[TERMINAL] )
    )
)

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @sure19,

Can you please share some dummy data and the expected results? It is hard to clarify your requirements and do test from your description without any detail sample data.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

hi Sheng,

 

here is the table attached https://1drv.ms/u/s!ArSIdgxdNuYwlhd6a6RpW8RKynbV?e=DTMoyw

 

Anonymous
Not applicable

HI @sure19,

You can use the following measure formula to extract table records and filter and calcite on other KPI table:

Measure =
CALCULATE (
    SUM ( TP_ENG_KPI[QC MOVES] ),
    FILTER (
        ALLSELECTED ( TP_ENG_KPI ),
        [TPA LOCATION NAME] IN VALUES ( OPS_YARD_MOVES[TERMINAL] )
    )
)

Regards,

Xiaoxin Sheng

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