The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Bom dia,
tudo bem?
Preciso fazer um somase. Estou usando a CALCULATE, mas só da erro.
Preciso somar a coluna CR_VALOR_DUPLICATA todas as vezes que o valor 80326 aparecer na coluna PV_CODIGO desta tabela e assim sucessivamente com os outros valores
Solved! Go to Solution.
Hi @Thiagops ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
Column =
calculate(
SUM(contas_a_receber[cr_valor_duplicata]),
filter(contas_a_receber,contas_a_receber[PV_CODIGO]= EARLIER(PV_CODIGO[PV_CODIGO])
))
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Thiagops ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
Column =
calculate(
SUM(contas_a_receber[cr_valor_duplicata]),
filter(contas_a_receber,contas_a_receber[PV_CODIGO]= EARLIER(PV_CODIGO[PV_CODIGO])
))
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Thiagops I hope this helps you.
Column =
calculate(
SUM(YourTable[Column]),
PV_CODIGO[PV_CODIGO]=RELATED(CONTAS_A_Table[YourColumn])
)
OR Try this
Column =
calculate(
SUM(YourTable[Column]),
CONTAS_A_Table[YourColumn]=RELATED(PV_CODIGO[PV_CODIGO])
)
Boa tarde,
Tentei aqui, mas deu erro
Mesmo relacionando as tabelas
User | Count |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |