Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
31 | |
29 | |
19 | |
15 | |
12 |
User | Count |
---|---|
20 | |
18 | |
13 | |
10 | |
10 |