Olá pessoal,
Preciso melhorar o código do cálculo faturamento acumulado por cliente e % acumulado do faturamento por clinete, pois o que fiz está com a performance ruim, está demorando muito para mostrar o resultado e quando realizo a publicação do Dashboard ele excede o limite de processamento.
Alguém poderia me ajudar a melhorar?
Solved! Go to Solution.
Please try this measure expression instead.
Customer accrued billing =
VAR vFatContext = [Total sales]
VAR vSummary =
ADDCOLUMNS (
ALLSELECTED ( TB_CLIENTES[CUSTOMER CODE] ),
"cSales", [Total sales]
)
VAR vResult =
SUMX ( FILTER ( vSummary, [cSales] >= vFatContext ), [cSales] )
RETURN
vResult
Pat
Please try this measure expression instead.
Customer accrued billing =
VAR vFatContext = [Total sales]
VAR vSummary =
ADDCOLUMNS (
ALLSELECTED ( TB_CLIENTES[CUSTOMER CODE] ),
"cSales", [Total sales]
)
VAR vResult =
SUMX ( FILTER ( vSummary, [cSales] >= vFatContext ), [cSales] )
RETURN
vResult
Pat
Hi, @Daniela_Romasko
Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
97 | |
39 | |
35 | |
16 | |
14 |
User | Count |
---|---|
99 | |
30 | |
28 | |
16 | |
16 |