Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello guys,
If I have the following case:
If I have the following case:
How can I make a measure that shows in a table or card the "Department" that could solve more "Incidents"?
Table 1
Users | Department |
Luis | 1 |
Sandra | 2 |
Miguel | 3 |
Ana | 4 |
Table 2
Users | Incidents |
Ana | Resolved |
Sandra | In Progress |
Ana | In Progress |
Miguel | Resolved |
Luis | Resolved |
Ana | In Progress |
Ana | Resolved |
Ana | Resolved |
Sandra | Resolved |
Thanks in advance
Solved! Go to Solution.
Hi @Estebanco ,
The basic measure would be something like this:
_noofIncidentsResolved =
CALCULATE(
COUNTROWS(Table2),
Table2[Incidents] = "Resolved"
)
To calculate this by department, you will need to relate Table1 to Table2 on [Users], then put Table1[Department] and [_noofIncidentsResolved] into a visual together.
Pete
Proud to be a Datanaut!
Hi @Estebanco ,
The basic measure would be something like this:
_noofIncidentsResolved =
CALCULATE(
COUNTROWS(Table2),
Table2[Incidents] = "Resolved"
)
To calculate this by department, you will need to relate Table1 to Table2 on [Users], then put Table1[Department] and [_noofIncidentsResolved] into a visual together.
Pete
Proud to be a Datanaut!
User | Count |
---|---|
25 | |
13 | |
12 | |
11 | |
8 |
User | Count |
---|---|
44 | |
27 | |
19 | |
16 | |
12 |