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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Uso de SWITCH para mostrar el valor del campo anterior

Hola

Tengo esta lista:

Sprint 1

Sprint 2

Sprint 3

Sprint 4

Sprint 5

Cada uno de los sprints tiene puntos de historia asociados (números)

Para cada Sprint, necesito la SUMA de puntos de historia del sprint previous. (Por ejemplo, para Sprint 2, necesito la suma de Puntos de historia de Sprint 1)

Así que para eso, estoy usando SWITCH, para traer el nombre de Sprint y la medida de la SUMA de puntos de la historia para el sprint PREVIOUS:

re.png

Este es un ejemplo de las medidas que he creado

re2.png

Observe que en el SWITCH , estoy llamando al nombre Sprint con la medida del Sprint anterior,

Puse el Cero sólo porque estaba probando, pero, ¿alguna idea de por qué no está funcionando? está mostrando valores en blanco.

Gracias de antemano.

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@pisanoagus

Hola. a medida que se utiliza una medida que permite el uso de contexto de fila un ALL() dentro de FILTER, como

SUMX(FILTER(ALL(RSRI),RSRI[Sprint Name]=....

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

5 REPLIES 5
mwegener
Most Valuable Professional
Most Valuable Professional

Hola @pisanoagus ,

si quieres aprender más sobre esto, lee esta entrada de blog "Comprender la transición del contexto"

https://www.sqlbi.com/articles/understanding-context-transition/

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


az38
Community Champion
Community Champion

@pisanoagus

Hola. a medida que se utiliza una medida que permite el uso de contexto de fila un ALL() dentro de FILTER, como

SUMX(FILTER(ALL(RSRI),RSRI[Sprint Name]=....

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Gracias @az38 😎

az38
Community Champion
Community Champion

@pisanoagus

¿Lo has mirado? Ya no estoy seguro de que esto funcione, tal vez su problema es más complicado


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Sí, está trabajando con ese cambio, ¡gracias!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors