Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 |
---|---|
109 | |
102 | |
84 | |
79 | |
70 |
User | Count |
---|---|
120 | |
110 | |
95 | |
82 | |
77 |