Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
luisClive
Helper III
Helper III

Max Total

Hola a todos

Quiero tener un gran total de valores máximos

Max Util.PNG

Así es como se ve el conjunto de datos

Data set sampleEjemplo de conjunto de datos

a veces tengo 2 fechas, a veces 3 fechas, pero el objetivo tiene que ser el mismo, por lo tanto, estoy luchando para utilizar las funciones "x", como sumx y maxx.

8 REPLIES 8
msksenthil
Helper III
Helper III

@luisClive  I used Measure to calculate the numbers

msksenthil_0-1604491584135.png

 

msksenthil
Helper III
Helper III

@luisClive  Sure 👍

@msksenthil

no sé si esto está hinchado, me hizo trabajar con este

Me olvidé de resumir antes

Medidas ?
Var MaxTarget á maxx('Staff Daily Utilisation','Staff Daily Utilisation'[Target Max As per current working Days])
Var MaxTargetTotal ? SUMMARIZE('Staff Daily Utilisation','Staff Daily Utilisation'[Staff Name],"Max Total",MaxTarget)
devolución
if(HASONEVALUE('Staff Daily Utilisation'[Nombre del personal]),
MaxTarget,
SUMX(MaxTargetTotal,[Max Total]))
FrankAT
Community Champion
Community Champion

Hola @luisClive

puedes hacerlo así:

04-11-_2020_11-59-54.png

Sum of Distinct Target Hours = 
VAR _Sum = SUM('Table'[Target Hours])
VAR _Table = DISTINCT('Table'[Target Hours])
RETURN
    IF(ISINSCOPE('Table'[Date]),_Sum, SUMX(_Table,'Table'[Target Hours]))

Con saludos amables desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)

msksenthil
Helper III
Helper III

@luisClive  Thanks,

 

I believe you have many fields with different values on each record, in this case, we have calculated by not considering the other fields except the required fields like 'date' & 'Target Hours'

 

SUMX (
SUMMARIZE ( Maxhours, Maxhours[Date], "Hours", MAX ( Maxhours[Target hours] ) ),
[Hours]
)

 

Hope this helps,

MS

@msksenthil tnks me permiten probar la función Summarize, déjame comprobarlo

@FrankAT gracias, no he usado inscope antes, yo compruebo esto también

msksenthil
Helper III
Helper III

@luisClive puede probar lo siguiente


SUMX ( DISTINCT ( 'TableName' ), 'TableName'[FieldName] )

@msksenthil

tnks

He intentado esto antes, ya que todos los valores son distintos, sólo que algunos datos faltan todos los días y quiero poner max independientemente

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.