Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I have 2 measures as follows:
Solved! Go to Solution.
Hi @_Kevin_
try
HCCurrentMonth =
var _CurrentMonth = MAX((Info[Reporting Month]))
RETURN
CALCULATE(SUM(HC_ACT[Headcount]),HC_ACT[TIME] = _CurrentMonth )
or
HCCurrentMonth = CALCULATE(SUM(HC_ACT[Headcount]),FILTER(HC_ACT, HC_ACT[TIME] = SELECTEDVALUE([CurrentMonth]) ))
Hi Kevin,
HCCurrentMonth = CALCULATE(SUM(HC_ACT[Headcount]), FILTER(HC_ACT,HC_ACT[TIME] = MAX(HC_ACT[TIME])))
Hi @_Kevin_
try
HCCurrentMonth =
var _CurrentMonth = MAX((Info[Reporting Month]))
RETURN
CALCULATE(SUM(HC_ACT[Headcount]),HC_ACT[TIME] = _CurrentMonth )
or
HCCurrentMonth = CALCULATE(SUM(HC_ACT[Headcount]),FILTER(HC_ACT, HC_ACT[TIME] = SELECTEDVALUE([CurrentMonth]) ))
Hi @az38
Thanks, the first option works great.
I would have preferred to use the second option but I cannot use a measure in the SELECTEDVALUE and get "Parameter is not the correct type"
Regards
Kevin
Hi @az38
I don't need either, I have now put the measure straight after "=" and it works too.
regards
Kevin
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
138 | |
107 | |
104 | |
82 | |
63 |