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
Syndicate_Admin
Administrator
Administrator

Buscando diff de dos valores aleatorios aplicando filtros

Hola a todos, por favor ayúdenme para la solución.

Por favor, consulte el conjunto de datos . hay una columna de ciclo con Q1, Q2, Q3. con ID , columna Importe

Necesito diferencia de dos ciclos (que estoy seleccionando en filtro) ciclo más alto será base en diferencia

También adjunté imágenes de vista DAX, Power BI.

Dax que anteriormente intentó mostrar la diferencia (q3-q2-q1) que está funcionando mientras seleccionaba q3 y q2 o q3 y q1.

pero si estoy seleccionando Q2 y Q1 en el filtro . Debe mostrar Q2 - Q1 como respuesta. Pero este dax mostrando ( -q2-q1). Aquí Q2 debe ser base en la diferencia.

por favor, ayúdame?

Muy apreciado por la solución

This is the data set image. I need the difference of any two cycle while selecting the cycle filter(q1,q2,q3,q4)This is the data set image. I need the difference of any two cycle while selecting the cycle filter(q1,q2,q3,q4)Esta es la imagen del conjunto de datos. Necesito la diferencia de dos ciclos cualesquiera al seleccionar el filtro de ciclo (q1, q2, q3, q4)this is the dax one which tried earlier. in this dax it is giving (highest  cycle q4 is base  (its giving difference of q4-q3-q2-q1) but  if im selecting q3 qnd q2 in filters , it should show q3- q2 (but here it giving -q3-q2)this is the dax one which tried earlier. in this dax it is giving (highest cycle q4 is base (its giving difference of q4-q3-q2-q1) but if im selecting q3 qnd q2 in filters , it should show q3- q2 (but here it giving -q3-q2)Este es el DAX que intentó antes. En este DAX está dando (el ciclo más alto q4 es base (su diferencia de dar de q4-q3-q2-q1) pero si estoy seleccionando q3 qnd q2 en los filtros, debería mostrar q3- q2 (pero aquí da -q3-q2)for example, if im selecting q1 and q2 in filter , it should the difference(q2-q1) ...not like -q2-q1..please help me in this ..for example, if im selecting q1 and q2 in filter , it should the difference(q2-q1) ...not like -q2-q1..please help me in this ..Por ejemplo, si estoy seleccionando Q1 y Q2 en el filtro, debería la diferencia (Q2-Q1) ... No como -q2-q1.. por favor ayúdame en esto..

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hola @Xiaoxin Sheng , Gracias por su respuesta, Pero necesito diferencia, debe estar en el cálculo dinámico de acuerdo con la selección del filtro.

Muchas gracias por su respuesta adicional

¿Puedes por favor ayudarme en esto?

Syndicate_Admin
Administrator
Administrator

@sarath_chandra,

De acuerdo con su descripción, parece que desea medir el cálculo con múltiples agregaciones.

Para este escenario, me gustaría sugerirle que consulte el blog de Greg para usar la función resumir para aplicar la agregación de primer nivel y usar la función de iterador sumx para aplicar el agregado de segundo nivel.

Medir totales, la última palabra

Saludos

Xiaoxin Sheng

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.