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
Adeelmushtaq
New Member

Necesito ayuda urgente. ¿Cómo puedo lograr esto en Power bi

Tengo datos como abajo

Estado de identificación

1 Solicitado

1 Aprobado

2 Solicitado

3 Solicitado

1 Cerrado

3 Aprobado

Quiero agregar una columna más que agregará un poco 0/1 delante de cada fila si ese identificador está aprobado. como abajo

Estado del ID isApproved

1 Solicitado SI

1 Aprobado SI

2 No solicitado

3 Solicitado SI

1 Cerrado SI

4 No solicitado

3 Aprobado SI

Por favor, ayúdenme. usando DAX.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hola

Esta fórmula de columna calculada funciona

=if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Status]="Approved"))>0,"Yes","No")

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hola

Esta fórmula de columna calculada funciona

=if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Status]="Approved"))>0,"Yes","No")

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
camargos88
Community Champion
Community Champion

@Adeelmushtaq ,

¿Qué lógica desea aplicar en esta nueva columna?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Quiero aplicar la lógica de que si el id 1 tiene la entrada aprobada, marque esta nueva columna como sí. lo mismo para cada identificación.

Hola @Adeelmushtaq

Eso no está claro. Tiene id's donde el estado no está aprobado, pero tienen Sí?

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.