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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Vygintas
New Member

How to filter report by two relationships

Situation: Im creating report for HelpDesk. Single user can create many tickets and single user can receive many tickets. I want to Slice report by how many tickets user created and how many tickets user created.

 

Problem: When I select user from slicer, it slices by tickets created by that user (this is according to relationship). But I want to also be able to slice by tickets he received to solve. How can I accomplish this?

 

image_2024-05-07_141538000.png

 

 

image_2024-05-07_141245357.png

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Vygintas , You need join all dates with a common date table. You will get one active and other inactive relationships. Inactive relationship can be activated using userelationship

 

refer similar

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

 

 

And files after signature

 

View solution in original post

Vygintas
New Member

I ended up by creating two identical tables for tickets. And table "users" has two relationships to "tickets_for_agent" and "tickets_by_authors". Now when I select user, I get both how much tickets he created and how much he got to solve.

 

To create such table I used: 

tickets_for_agent = CALCULATETABLE('tickets')

View solution in original post

2 REPLIES 2
Vygintas
New Member

I ended up by creating two identical tables for tickets. And table "users" has two relationships to "tickets_for_agent" and "tickets_by_authors". Now when I select user, I get both how much tickets he created and how much he got to solve.

 

To create such table I used: 

tickets_for_agent = CALCULATETABLE('tickets')
amitchandak
Super User
Super User

@Vygintas , You need join all dates with a common date table. You will get one active and other inactive relationships. Inactive relationship can be activated using userelationship

 

refer similar

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

 

 

And files after signature

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.