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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

hi Sheng,

 

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

 

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.