cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Suma basada en valores condicionales de otras columnas de tabla

Hola.

No puedo averiguar cómo sumar la columna C de la Tabla 1 en función de la condición de que los valores de la columna B se ajusten al intervalo (Columna I y J)

1f2bbfbb7bf8434af81fa67433cef6a8.png¿Alguien podría ayudarme a resolver ese problema? Cada vez que intento crear una nueva columna o una nueva medida, DAX no me permite usar las variables que necesito para implementar las matemáticas.

Gracias de antemano

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@JMSNYC - Debe ser como una columna:

Actual Revenue = SUMX(FILTER(RELATEDTABLE('DAILY REVENUES'),[Date Rev.]>=[Tender Start Date] && [Date Rev.]<=[Tender End Date]),[Revenue])

Si eso no funciona, por favor,

Confirmé esto en el archivo PBIX adjunto debajo de sig. Cuadro (23), Cuadro (23a), Cuadro (23b)


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Super User IV
Super User IV

@JMSNYC , Pruebe una nueva columna como esta tabla de licitaciones

sumx(filter(DailyRevenue, Tenders[TenderStartDate]<=DailyRevenue[DateRev] 
		&& Tenders[TenderEndtDate]>=DailyRevenue[DateRev] && DailyRevenue[CustomerUID] = Tenders[CustomerUID]),DailyRevenue[Revenue])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Super User IV
Super User IV

@JMSNYC - Debe ser como una columna:

Actual Revenue = SUMX(FILTER(RELATEDTABLE('DAILY REVENUES'),[Date Rev.]>=[Tender Start Date] && [Date Rev.]<=[Tender End Date]),[Revenue])

Si eso no funciona, por favor,

Confirmé esto en el archivo PBIX adjunto debajo de sig. Cuadro (23), Cuadro (23a), Cuadro (23b)


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.