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
wsspglobal
Helper I
Helper I

Detectar nuevo elemento en la misma columna

Hola

Tengo una mesa como esta, y quiero identificar el nuevo artículo que Shopper1 consiguió en comparación con el lunes. ¿Cómo sería la fórmula en "Nuevo elemento" (Columna D)?

CompradorDíaArtículoNuevo artículo
Comprador1Lunesmanzana
Comprador1LunesPlátano
Comprador1LunesNaranja
Comprador1MartesNaranja
Comprador1Martesmanzana
Comprador1MartesPlátano
Comprador1MarteslimaNuevo artículo

¡¡Gracias!!

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@wsspglobal
Puede establecer la variable en cualquier día

New column = 
Var Monday_= CALCULATETABLE(VALUES('Table'[Item]),'Table'[Day]="Monday")
Var Tuesday_= CALCULATETABLE(VALUES('Table'[Item]),'Table'[Day]="Tuesday")
return IF(Tuesday_ in Monday_,BLANK(),[Item])

Paul Zheng
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

az38
Community Champion
Community Champion

Hola @wsspglobal

puedes probar la columna LOOKUPVALUE() como

New Item = 
var _inMonday = LOOKUPVALUE('Table'[Shopper],'Table'[Shopper],[Shopper],'Table'[Item],[Item],'Table'[Day],"Monday")
RETURN
if(ISBLANK(_inMonday),"New Item",BLANK())

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

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.