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.
Hello all.
I'm looking for some help on this DAX code:
Median Test 3 (next 3 months approved) =
VAR MedianValueDiscipline =
CALCULATE (
MEDIANX (
SUMMARIZE (
'Actual & Forecast Project Resources',
'Actual & Forecast Project Resources'[Work Week Ending Date],
'Actual & Forecast Project Resources'[Capsule Descriptions.Discipline],
"Median FTEs",
SUMX (
'Actual & Forecast Project Resources',
'Actual & Forecast Project Resources'[Consolidated FTEs]
)
),
[Median FTEs]
),
'Actual & Forecast Project Resources'[Final Consolidated Hours Type] = "Approved",
DATESINPERIOD (
'Actual & Forecast Project Resources'[Work Week Ending Date],
MAX ( 'Date'[EndOfThisWeek] ) - 1,
3,
MONTH
)
)
RETURN
MedianValueDiscipline
@DRA885 , did you manage to solve this? I am currently fasing the same problem.
Sorry thought I had the solution but this is still incorrect.
Obviously now still looking for a solution to this
solved with the following change to the Sum calculation of FTEs:
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
7 |