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
sparkplug93751
Helper II
Helper II

Relaciones y búsquedas

Hola

Tengo una columna que realiza una búsqueda si otra columna coincide con los criterios: if(category-30,"30",lookupvalue(table1(task),table1(category),task(category)

Cuando intento realizar una búsqueda (o relación) entre dos tablas utilizando esta columna de categoría, los datos escritos, 30, no se detectan y desechan mis medidas?

¿Cómo se puede resolver esto? Ambos son texto de tipo de datos

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hola @sparkplug93751 ,

¿Podría informarnos información más detallada (sus datos de ejemplo (por OneDrive para la Empresa)) si es posible? Entonces le ayudaremos más correctamente.

Basado en su fórmula dax, le sugiero que la cambie a:

Column = IF('task'[category] = "30","30",LOOKUPVALUE('table1'[task],'table1'[category],'task'[category])

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

Saludos

Dedmon Dai

amitchandak
Super User
Super User

@sparkplug93751

Puede mover datos como este de table2 a table 1

Obtener de la Tabla 2

Nueva columna: maxx(filter(table2,table2[Col1]- table1[col1] && table2[Col2]- table1[col2] ),table2[required_col])
Nueva columna: maxx(filter(table1,table1[Col1]- anterior(table1[col1]) && table1[Col1]- anterior(table1[col2]) ),table1[required_col])

Greg_Deckler
Super User
Super User

Eso es muy difícil de responder sin algunos datos, información de relaciones, etc. Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.