Buen dรญa a todos y gracias de antemano por leer la preguntaโฆ
Estoy creando una app para llevar los trabajos realizados de fertilizaciรณn con clientes, y no se cรณmo sumar los datos de la columna [COSTO ESTIMADO] en la tabla TRABAJOS que no estรฉn ya cobrados (Columna [COBRADO] en valor [FALSO]) y que ese resultado se exprese en la columna [CUENTA] de la tabla โCLIENTESโ.
La tabla [CLIENTES]:
La fรณrmula que uso en la celda [CUENTA] es:
SUM(select(TRABAJOS[COSTO ESTIMADO],AND([CLIENTE]=[_Thisrow].[CLIENTE],[COBRADO]=โFALSOโ)))
y la tabla trabajos:
Saludos!!!
Solved! Go to Solution.
Hi @Maxi
Your formula is almost correct, though I would bring a subtle change, please see below:
SUM(
SELECT(TRABAJOS[COSTO ESTIMADO],
AND(
[CLIENTE]=[_THISROW],
NOT([COBRADO])
)
)
)
Please note, that this part : [CLIENTE]=[_THISROW]
can also be expressed as [CLIENTE]=[_THISROW].[ID_CLIENTE]
For your goal, you need to use a virtual column.
You are currently using a physical column, which wonโt be updated unless you edit the row.
Virtual column are always calculated on the fly, so result is always correct.
To do so:
It should do the job, let us know if thatโs OK for you.
For reference:
Hi @Maxi
Your formula is almost correct, though I would bring a subtle change, please see below:
SUM(
SELECT(TRABAJOS[COSTO ESTIMADO],
AND(
[CLIENTE]=[_THISROW],
NOT([COBRADO])
)
)
)
Please note, that this part : [CLIENTE]=[_THISROW]
can also be expressed as [CLIENTE]=[_THISROW].[ID_CLIENTE]
For your goal, you need to use a virtual column.
You are currently using a physical column, which wonโt be updated unless you edit the row.
Virtual column are always calculated on the fly, so result is always correct.
To do so:
It should do the job, let us know if thatโs OK for you.
For reference:
Thanks You!!! This is what I need.
Thanks You so much
Maxi
User | Count |
---|---|
43 | |
30 | |
26 | |
14 | |
14 |