Forum Discussion

DiddyO's avatar
DiddyO
New Member
2 years ago
Solved

Filtering a table based on other table values

Hi, not sure whether this is somehow possible at all... I have a table[assets] with some servernames [names] as strings.  And then i have another table that has event informations (like high cpu lo...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi DiddyO ,

    If the abbreviation of the server name in your another table that has event informations is somewhat regular, e.g., it's all the first two characters of the full spelling of name, then you can try the following:


    I use this DAX to create a measure:

    Measure = 
    IF(
        ISFILTERED(assets[names]),
        IF(
            SELECTEDVALUE(event[names]) = LEFT(SELECTEDVALUE(assets[names]), 2),
            1,
            0
        ),
        1
    )

    The final output is below:


    But this is only an example, your specific situation will have to ask you to provide sample data, then I can provide a more accurate solution, thank you!

    Best Regards,
    Dino Tao
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.