Forum Discussion
How can I divide a column by a fixed value
- 8 years ago
Maybe you can change the table
Medida = Calculate([MOV YTD];ALL(dEBITDA);Filter(dEBITDA;dEBITDA[CONTA_EBITDA]="RECEITA LIQUIDA");dRazao)
The number has changed but it is wrong.
After several attempts, I succeeded
%Vert RLiq =
VAR DEN_01 = CALCULATE([RL YTD];ALLSELECTED(dRazao); FILTERS(dColigada[Empresa_Simples]))
VAR NUM_01 = [MOV YTD]
RETURN
DIVIDE(NUM_01;DEN_01;0)
It's tricky.
I see you have a separate table for your measures. Maybe this causes the problem.
Next try:
Medida = Calculate([MOV YTD];ALL(dEBITDA);Filter(dEBITDA;dEBITDA[CONTA_EBITDA]="RECEITA LIQUIDA");dEBITDA)
You can add a table as Filter in Calculate so the measure is calculated as it would be if you had calculated it in this table.
(I don't know if this is correct in grammar, but I hope it's understandable)
It's tricky.
I see you have a separate table for your measures. Maybe this causes the problem.
Yes..5 days trying and failing! I did it according the good practices to organize it better, but if it is a issue i can join it all in dRazao.
Next try:
Medida = Calculate([MOV YTD];ALL(dEBITDA);Filter(dEBITDA;dEBITDA[CONTA_EBITDA]="RECEITA LIQUIDA");dEBITDA)
Same Result.
You can add a table as Filter in Calculate so the measure is calculated as it would be if you had calculated it in this table.
I did not understand
tks
Wallace
- Floriankx8 years agoSolution Sage
I understand why you are on it for such a long time.
Maybe you can change the table
Medida = Calculate([MOV YTD];ALL(dEBITDA);Filter(dEBITDA;dEBITDA[CONTA_EBITDA]="RECEITA LIQUIDA");dRazao)
- wmoura128 years agoRegular Visitor
Maybe you can change the table
Medida = Calculate([MOV YTD];ALL(dEBITDA);Filter(dEBITDA;dEBITDA[CONTA_EBITDA]="RECEITA LIQUIDA");dRazao)
The number has changed but it is wrong.
After several attempts, I succeeded
%Vert RLiq =
VAR DEN_01 = CALCULATE([RL YTD];ALLSELECTED(dRazao); FILTERS(dColigada[Empresa_Simples]))
VAR NUM_01 = [MOV YTD]
RETURN
DIVIDE(NUM_01;DEN_01;0)