cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alex_
Frequent Visitor

Summarizing a column from another table while using a slicer

Hi! I have two tables with the following, in a one-to-many relationship:

 

Data

IDValue
AB$1
XY$2
CZ$3

 

Activities

IDNameStatus
ABBobbyIn Progress
XYBillyComplete
ABBobbyComplete
XYBennyIn Progress
ABBillyWaiting
CZBennyComplete

 

In the report I have a slicer to select a Name and a table of Data, where I want to show the progress of activities for the selected Name. This should be summarised, so show In Progress if there is anything in progress, if not show Not Started if there is any, if not show Waiting if there is any, if not show Complete if there is any, else leave it blank. Ideally, this will be the result:

 

[Billy selected in Name slicer]
Data

IDValueStatus
AB$1Waiting
XY$2Complete

 

[Bobby selected in Name slicer]
Data

IDValueStatus
AB$1In Progress

 

[Benny selected in Name slicer]
Data

IDValueStatus
XY$2In Progress
CZ$3Complete

 

There are many more names and IDs, but only a few Statuses. How can this be set up?

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi,  @Alex_ 

 

Accord to your description, I think you can create a measure to display in table visual.

Like this:

Measure = 
VAR a =
    VALUES ( Activities[Status] )
RETURN
    IF (
        "In Progress" IN a,
        "In Progress",
        IF ( "Waiting" IN a, "Waiting", IF ( "Complete" IN a, "Complete" ) )
    )

7.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

View solution in original post

1 REPLY 1
v-janeyg-msft
Community Support
Community Support

Hi,  @Alex_ 

 

Accord to your description, I think you can create a measure to display in table visual.

Like this:

Measure = 
VAR a =
    VALUES ( Activities[Status] )
RETURN
    IF (
        "In Progress" IN a,
        "In Progress",
        IF ( "Waiting" IN a, "Waiting", IF ( "Complete" IN a, "Complete" ) )
    )

7.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

Helpful resources

Announcements
collabdays lisbon

CollabDays Lisbon - 26 November 2022

Sessions include practical, hands-on experience that will help you take the next step in your career and know-how.

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.