Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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!