Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I've been trying to search this and figure it out but I can't seem to find the correct answer. I have two tables.
(1) A list of Department
(2) A table of all of our budgeted hire and open requisitions by department
I need a count of Total Budget to Hire by department, as well as Total Open Requisition.
How do I accomplish this using a measure instead of a calculated column? The output I need is below
Thank you in advance!
Solved! Go to Solution.
EDIT: Sorry, the Total Open Requisition for Project/Program Management is 7, not 6.
HI @egrospe17,
You can try to use following measure formulas if they suitable for your requirement:
Total Budget =
VAR list =
VALUES ( Department[Department] )
RETURN
CALCULATE (
SUM ( Table1[Budgeted Positions] ),
FILTER ( ALLSELECTED ( Table1 ), [Department] IN list && [Req Type] = "Budget" )
)
Total Open Requisition =
VAR list =
VALUES ( Department[Department] )
RETURN
CALCULATE (
SUM ( Table1[Number of Open Positions] ),
FILTER (
ALLSELECTED ( Table1 ),
[Department]
IN list
&& [Req Type] = "Open Requisition"
)
)
Regards,
Xiaoxin Sheng
EDIT: Sorry, the Total Open Requisition for Project/Program Management is 7, not 6.
HI @egrospe17,
You can try to use following measure formulas if they suitable for your requirement:
Total Budget =
VAR list =
VALUES ( Department[Department] )
RETURN
CALCULATE (
SUM ( Table1[Budgeted Positions] ),
FILTER ( ALLSELECTED ( Table1 ), [Department] IN list && [Req Type] = "Budget" )
)
Total Open Requisition =
VAR list =
VALUES ( Department[Department] )
RETURN
CALCULATE (
SUM ( Table1[Number of Open Positions] ),
FILTER (
ALLSELECTED ( Table1 ),
[Department]
IN list
&& [Req Type] = "Open Requisition"
)
)
Regards,
Xiaoxin Sheng
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |