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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Syndicate_Admin
Administrator
Administrator

No obtener un total en la imagen de la tabla

Creé la siguiente medida de dax, pero no pude ver el total cuando la usé en una tabla, también obtuve un valor en blanco cuando se usó en el objeto visual de tarjeta.

Capturew.PNG

Capture.PNG

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hola @Greg_Deckler , gracias por la respuesta rápida, agregaré más.

Hola @Khurramalidar ,

Con respecto a su pregunta, 'Total' no tiene ningún efecto de filtrado. Dado que también está utilizando la función 'selectedvalue', la función devuelve null.

Intenta modificar tu expresión.

vzhouwenmsft_0-1715743842455.png

Measure = 
VAR _a = SELECTEDVALUE('Table'[Date])
VAR _b = SWITCH(TRUE(),
YEAR(_a) = 2024,SELECTEDVALUE('Table'[Amount]))
RETURN IF(ISBLANK(_a),CALCULATE(SUM('Table'[Amount]),YEAR('Table'[Date]) = 2024),_b)

vzhouwenmsft_1-1715743869998.png

Syndicate_Admin
Administrator
Administrator

@Khurramalidar Primero, por favor, vota por esta idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

Esto parece un problema de totales de medida. Muy común. Mira mi post al respecto aquí: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Además, esta Medida Rápida, Totales de Medida, La Última Palabra debería darte lo que necesitas:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

También: https://youtu.be/uXRriTN0cfY
Y: https://youtu.be/n4TYhF2ARe8

Syndicate_Admin
Administrator
Administrator

Mayo =
INTERRUPTOR (
VERDADERO (),
YEAR ( SELECTEDVALUE('Oportunidades abiertas'[Fecha de cierre estimada]) ) = 2024, SELECTEDVALUE('Oportunidades abiertas'[Ingresos estimados]),
0.00
)

Al usar esta medida, obtengo un $0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.