Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hola
¿Puede decirme por favor por qué esta fórmula no funciona?
CALCULATE(COUNT(DifferentTable[Col1]),filter(DifferentTable,DifferentTable[Col2]=RELATED(SameTable[Col1])))
Aparece el siguiente error:
The column 'SameTable[Col1]' either doesn't exist or doesn't have a relationship to any table available in the current context.
¡Gracias!
Hola @UsePowerBI ,
¿Hay alguna relación entre estas dos tablas?
Si no hay ninguna relación entre ellos, no puede utilizar la función related(). Si realmente tienen una relación, intente utilizar la función relatedtable().
Related() se utiliza para hacer referencia a un lado de una relación.
RELATEDTABLE() se refiere a los muchos lados.
Consulte este artículo sobre relacionado y relacionado: Relacionado y relacionadoTabla – DAX para Power PivotPower Pivot, Power BI y SSAS
Best Looks,
Yingjie Li
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Hola @UsePowerBI
Puede usar related si está intentando llegar a una columna de una tabla que en un lado (1:*) de la relación.
¿Qué es lo que está tratando de lograr y está creando una columna o una medida?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.