Forum Discussion

W2SANC's avatar
W2SANC
Helper II
3 years ago
Solved

Creating Connection Between 2 Tables Based on Existing Column Condition

Hi!    Newer Power BI user here. I have two taables that I am trying to conncet. One table [Table 1] is a transaction level table, where each sale is a row, and each row has columns (product type, ...
  • Sahir_Maharaj's avatar
    3 years ago

    Hello W2SANC 

     

    To filter the visual based on the poverty status, you can use a measure along with the RELATED function. The RELATED function allows you to access related columns from a table based on the established relationship:

    Total Sales in Poverty Counties = 
    CALCULATE(
        SUM('Table 1'[total sale amount]),
        RELATED('Table 2'[poverty status]) = "Y"
    )

    Do not hesitate to let me know if you might need further assistance.