Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CGrunberg
Frequent Visitor

Count meetings per person if person is present in any of multiple columns

Hi,

I can't seem to wrap my head around how to calculate this using DAX. I hope one of you clever people would be able to help me.

 

I have a table of sales reps:

SalesRepName | MeetingOwner

 

I have a table of meetings:

MeetingID | MeetingOwner | Date

 

and a second table of meetings:

MeetingID | MeetingAttendeeCol1 | MeetingAttendeeCol2 | Date

 

I need a graph displaying how many meetings a given sales rep has attended either as an owner or as an attendee. All meetings have at least one person linked (the owner), but may have multiple that need to be counted, e.g. if a given meeting has both an owner and two attendees.

 

 

-----

One idea I've had is to unpivot the meetings table on the sales rep value leading to, instead of having one row pr unique meeting, instead having one row per unique meeting-sales rep and then counting sales reps from that table. But I was hoping for a prettier solution with less redundant data.

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.