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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Creación de una columna DAX

Hola

Tengo el siguiente SQL desde el que quiero crear una columna para obtener el total de datos de recopilación para ese mes en particular.

¿Cómo puedo crear una columna calculada DAX.

select companyid,DATEFROMPARTS(receivedyear,receivedmonth,1) ReceivedMonth,sum(amount) Collection
De CashReceiveds donde companyid 280
grupo por companyid,DATEFROMPARTS(receivedyear,receivedmonth,1)

Salida esperada:

companyidReceivedMonthColección
28001-01-201951823.02
28001-12-2019500
28001-01-202090650.48
28001-02-202045903.93
1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hola @Himanshu_13

Si la ayuda de las publicaciones anteriores, por favor márquela como una respuesta para ayudar a otros a encontrarla más rápidamente. ¡Gracias!

Si no, por favor, amablemente elaborar más.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hola @Himanshu_13

Si la ayuda de las publicaciones anteriores, por favor márquela como una respuesta para ayudar a otros a encontrarla más rápidamente. ¡Gracias!

Si no, por favor, amablemente elaborar más.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Greg_Deckler
Super User
Super User

@Himanshu_13 No tiene idea de la SQL por lo general no es el mejor camino a la victoria. Los datos de muestra son mejores, pero tal vez:

New Table = SUMMARIZE('Table',[companyid],[received month],"Collection",SUM([Collection]))

Follow on LinkedIn
@ 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
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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors
Top Kudoed Authors