Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Crear una fórmula DAX de columna calc para una necesidad específica

HI todos -

¡Todos han sido tan útiles! ¡Me encanta este foro!

Soy muy nuevo en PBI. ¡Me encanta!

Necesito crear una columna calculada en una tabla con la que estoy trabajando.

Una columna es un código BILL TO... Ie. 9132.

Estos códigos son para identificar un conjunto de tiendas minoristas específicas... Ie. Walmart

La fórmula utilizada en otra aplicación es básicamente:

Factura a 41944/ACADEMY, Factura a 9132, 6180, 501384, 431016/BPCAB, Factura a 5825, 45361/SPORTSMAN, Factura a 6050/DICKS, Factura al 7181, 534798/GANDER, Factura a ese/SCHEELS/SCHEELS, Factura al 7181, 534798/GANDER, Factura a ese/SCHEELS/SCHEELS

¿Cómo escribo esto en DAX? Gracias de antemano!

mate

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hola @matthewwbowers ,

Compruebe la fórmula a continuación, Si malinterpreta sus significados por favor hágamelo saber.

Column = CALCULATE(MAX('Table (2)'[value]),FILTER('Table (2)','Table'[BILL TO code]='Table (2)'[BILL TO code]))

6.PNG

7.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

En realidad, no estaba claro. Los dos valores son valores de texto. Creo que la función sustitutiva dax hará lo que quiera. ¡Gracias!

vanessafvg
Super User
Super User

¿quieres filtrar por esas tomas de corriente?

entonces usaría una función de filtro

Ie

https://forum.enterprisedna.co/t/writing-a-dax-function-to-filter-out-multiple-criteria-for-a-given-...

Ventas totales filtradas ?
CALCULATE(
[Ventas totales],
FILTRO(
Salida
NombreDeCorte De salida á "insertnamehere"
NombreDeCorte De salida á "insertnamehere"

NombreDeCorte : "insertnamehere" )
)

|| o o




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




amitchandak
Super User
Super User

@matthewwbowers, no muy claro

Ejemplo

calculate(sum(table[value]), filter(table, table[Bill To] en "41944/ACADEMY","9132", "6180", "501384", "431016/BPCAB", "5825","45361/SPORTSMAN"))

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.