Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Quiero contar el número de facturas de compra que han sido vencidas hasta la fecha de HOY. Para ello, tengo un campo que me informa de cuando vence una factura: due_date_id.
He probado con esto, sin embargo, creo que la fórmula no es correcta:
num_facturas_vencidas =
CALCULATE(
COUNT(fact_purchase_invoice[purchase_invoice_id]),
fact_purchase_invoice[due_date_id]<TODAY()
)
Muchas gracias!
Solved! Go to Solution.
@powerbi2srm , This should work if due_date_id is a date
num_facturas_vencidas =
CALCULATE(
COUNT(fact_purchase_invoice[purchase_invoice_id]),Filter(fact_purchase_invoice, fact_purchase_invoice[due_date_id]<TODAY() )
)
or try like
num_facturas_vencidas =
CALCULATE(
COUNT(fact_purchase_invoice[purchase_invoice_id]),Filter(fact_purchase_invoice, fact_purchase_invoice[due_date_id]< (format(TODAY(), "YYYYMMDD") *1) )
)
@powerbi2srm , This should work if due_date_id is a date
num_facturas_vencidas =
CALCULATE(
COUNT(fact_purchase_invoice[purchase_invoice_id]),Filter(fact_purchase_invoice, fact_purchase_invoice[due_date_id]<TODAY() )
)
or try like
num_facturas_vencidas =
CALCULATE(
COUNT(fact_purchase_invoice[purchase_invoice_id]),Filter(fact_purchase_invoice, fact_purchase_invoice[due_date_id]< (format(TODAY(), "YYYYMMDD") *1) )
)
User | Count |
---|---|
84 | |
80 | |
69 | |
46 | |
46 |
User | Count |
---|---|
106 | |
50 | |
49 | |
40 | |
39 |