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

Sumar el coste total

hola equipo,

básicamente, tengo dos tablas enlazadas entre sí tiene todo el nombre del empleado + sus certificados

el otro tiene los detalles del certificado que tiene el costo, así

Quiero obtener el costo total para empleados específicos, pero ahora podría

https://www.up-00.com/i/00165/llfpviwd73br.png

4 REPLIES 4
v-gizhi-msft
Community Support
Community Support

Hola

Aquí están mis tablas de prueba:

50.PNG51.PNG

2.jpg

A continuación, cree estas columnas:

Course Time = DATEDIFF(Cost[Course Start Time],Cost[Course End Time],SECOND)/3600
Cost = Cost[Course Time]*Cost[Course Cost]

Por favor, pruebe esta medida:

Total Cost =
CALCULATE (
    AVERAGEX ( Cost, Cost[Course Cost] * Cost[Course Time] ),
    FILTER (
        ALLSELECTED ( Cost ),
        Cost[Certificates] IN FILTERS ( Cost[Certificates] )
    )
)

El resultado muestra:

52.PNG

Aquí está mi archivo pbix de prueba:

pbix

Espero que esto ayude.

Saludos

Giotto Zhi

kentyler
Solution Sage
Solution Sage

Creé algunas tablas de muestraemployee_certificate.PNG
y luego esta medida

total del certificado ?
VAR current_employee - SELECTEDVALUE(empleado[empleado])
VAR total_cost de cálculo (Sum(certificate[cost]),certificate[employee]-current_employee,all(certificate[cost]))
DEVOLVER total_cost
Que puse en un informe
2tables.PNG




Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Anonymous
Not applicable

gracias kent

Desafortunadamente

Anonymous
Not applicable

sólo para hacerle saber que la columna Costo en mi tabla de certificados es una columna personalizada que es Tiempo del curso * Costo Cours

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