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.
Hola
Tengo 2 medidas como sigue:
Solved! Go to Solution.
Hola @_Kevin_
Tratar
HCCurrentMonth =
var _CurrentMonth = MAX((Info[Reporting Month]))
RETURN
CALCULATE(SUM(HC_ACT[Headcount]),HC_ACT[TIME] = _CurrentMonth )
O
HCCurrentMonth = CALCULATE(SUM(HC_ACT[Headcount]),FILTER(HC_ACT, HC_ACT[TIME] = SELECTEDVALUE([CurrentMonth]) ))
Hola Kevin,
HCCurrentMonth á CALCULATE(SUM(HC_ACT[Headcount]), FILTER(HC_ACT,HC_ACT[TIME] á MAX(HC_ACT[TIME])))
Hola @_Kevin_
Tratar
HCCurrentMonth =
var _CurrentMonth = MAX((Info[Reporting Month]))
RETURN
CALCULATE(SUM(HC_ACT[Headcount]),HC_ACT[TIME] = _CurrentMonth )
O
HCCurrentMonth = CALCULATE(SUM(HC_ACT[Headcount]),FILTER(HC_ACT, HC_ACT[TIME] = SELECTEDVALUE([CurrentMonth]) ))
Hola @az38
Gracias, la primera opción funciona muy bien.
Hubiera preferido usar la segunda opción, pero no puedo usar una medida en SELECTEDVALUE y obtener "Parámetro no es el tipo correcto"
saludos
Kevin
Hola @az38
No necesito tampoco, ahora he puesto la medida justo después de "" y funciona también.
saludos
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |