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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
icdns
Post Patron
Post Patron

Porcentaje de año a día

Hola

Me gustaría obtener la línea YTD% Percentage en mi línea y visual agrupado. No tengo ningún filtro de mes seleccionado. En mi consulta de equilibrio. Quiero que mi YTD% se divida por el número máximo disponible de meses en lugar de agregar los 4 meses. Capture.PNG

El valor YTD% debe ser:
(97,44 + 97,58 + 100 + 99,56 a 394,58%) / Mes máximo disponible, 98,65%
1 ACCEPTED SOLUTION
Anonymous
Not applicable

puede calcular el % YTD con muchos tipos de medida.

Mi solución es primero medir el YTD y dividirlo a fechas máximas. Para tu información, mi nombre de tablas de calendario es Fechas.

YTD - TOTALYTD('your ytd table'[su valor YTD],'Dates'[Date])

YTD% á CALCULATE(SUM('your ytd table'[your ytd column]) / MAX(Dates[Date])).

y definir el tipo de medida a percantage.

Espero que ayude.

View solution in original post

3 REPLIES 3
AllisonKennedy
Super User
Super User

@icdns
¿Cuál es su medida actual para YTD%?

Dividiría por recuento de meses, para que funcione para el mes seleccionado, así como la columna total:
YTD% Nuevo - DIVIDE([YTD%], COUNTROWS(VALUES(DimDate[Month])))

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

puede calcular el % YTD con muchos tipos de medida.

Mi solución es primero medir el YTD y dividirlo a fechas máximas. Para tu información, mi nombre de tablas de calendario es Fechas.

YTD - TOTALYTD('your ytd table'[su valor YTD],'Dates'[Date])

YTD% á CALCULATE(SUM('your ytd table'[your ytd column]) / MAX(Dates[Date])).

y definir el tipo de medida a percantage.

Espero que ayude.

AntrikshSharma
Community Champion
Community Champion

Simplemente divida la medida YTD por MAX ( Fechas[Número de mes] )

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.