The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there,
I have 3 tables in an extended data model, which I am trying to use DAX to calculate something and I am struggling to figure it out...
Table 1 - User Groups
Table 2 - ServiceNow Problem
Table 3 - ServiceNow Problem Tasks
I am trying to calculate the number of Tasks that do not have an assignee of the Problems that are owned by a usergroup. I can do this via a calculated column using the following:-
The following DAX can be used if I include the Problem Record in the table and reference it via SelectedValue:-
You could do something like
Num unassigned =
VAR Problems =
VALUES ( 'sn_problem_fact'[problem ID] )
VAR Tasks =
VALUES ( 'sn_task_fact'[problem ID] )
VAR Result =
COUNTROWS ( EXCEPT ( Problems, Tasks ) )
RETURN
Result
User | Count |
---|---|
12 | |
9 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
14 | |
9 | |
7 |