Forum Discussion

JinDR's avatar
JinDR
Frequent Visitor
1 year ago
Solved

Lookup Function with Multiple results

I have a table which has multiple values such as below:

ClientReasonDate
AErrorJul 1
AWrong DataJul 8
BErrorJul 10
BWrong InputJul 20
BWrong DataJul 22

 

Is it possible for card visual lookup that would display all reasons when I look up a client? 

i.e.

Search Client Name: B

Card shows: Error
                     Wrong Input
                     Wrong Data

Thanks in advance.

 

  • Anonymous's avatar
    Anonymous
    1 year ago

    JinDR  , By using the below measure the unique reasons can be displayed.

    Measure = CONCATENATEX('Client','Client'[Reason],"
    ")

3 Replies

  • JinDR Create a new table that will hold the unique reasons for each client. 

     

    UniqueReasons =
    DISTINCT(
    SELECTCOLUMNS(
    YourTableName,
    "Client", YourTableName[Client],
    "Reason", YourTableName[Reason]
    )
    )

     

    Create a card visual and set it up to display the reasons. 
    Add a slicer to your report and set it to filter by the client.
    Add a card visual to your report.
    Set the card visual to display the Reason field from the UniqueReasons table.
    Ensure the card visual is filtered by the slicer selection.

  • Anonymous's avatar
    Anonymous
    Not applicable

    JinDR  , By using the below measure the unique reasons can be displayed.

    Measure = CONCATENATEX('Client','Client'[Reason],"
    ")
  • v-veshwara-msft's avatar
    v-veshwara-msft
    Community Support

    Hi JinDR ,
    Thanks for reaching out to Microsoft Fabric Community.

    Just checking in to see if you query is resolved and if any responses were helpful.
    Otherwise, feel free to reach out for further assistance.

     

    Thanks Anonymous and bhanu_gautam for your valuable inputs and prompt response.