Forum Discussion

ksivaganesh99's avatar
ksivaganesh99
Helper II
6 years ago
Solved

Display data in a table visual using two linked tables

 

Hi all,

I have two tables linked by a linkedID. Below are the two tables.

Table1:

IDStatusTypeStateSuggestionOwnerLinkedID
123NewHighHighAvoidThomas Edison1
124NewHighHighAvoidMonique Cook2
124NewHighHighAvoidMonique Cook3
124NewHighHighAvoidMonique Cook4

Tale 2:

LinkedIDTitleStatus
1WorkItem1Done
2WorkItem2Done
3WorkItem3Done
4WorkItem4Done

 

I want to have them displayed in a tabular format as shown below. How can I acheive it?

 

Any help is highly appreciated. Thanks.

  • Icey's avatar
    Icey
    6 years ago

    Hi ksivaganesh99 ,

     

    How about this:

     

    1. Create a [State Measure] like so:

    State Measure =
    VAR Previous_ =
        CALCULATE (
            MAX ( Table1[State] ),
            FILTER ( ALLSELECTED ( Table2 ), Table2[Title] < MAX ( Table2[Title] ) )
        )
    RETURN
        IF ( Previous_ = MAX ( Table1[State] ), BLANK (), MAX ( Table1[State] ) )
    

     

    2. Change [Measure] like so:

    Measure = 
    SWITCH (
        [State Measure],
        "High", "red",
        "Medium", "orange",
        "Low", "blue"
    )

     

    3. Replace [State] column with [State Measure] in the Matrix visual.

     

    4. Set conditional formatting.

     

     

    BTW, .pbix file attached.

     

     

    Best Regards,

    Icey

     

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

7 Replies