Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Assuntos relacionados a criação de medidas, fórmulas e funções DAX, relacionamentos etc
Por Kaique4k
Posts
#65330
Boa tarde,

Poderiam me ajudar no gráfico abaixo.
Gostaria de visualizar apenas os ultimos 3 meses conforme o filtro selecionado de mês e o valor comparando até a data de hoje.
Imagem
Realizado x Meta.pbix
Usei a medida abaixo mas continua trazendo todos os meses.

Last 3 months =
VAR VENDASM0 = CALCULATE(
[Vendas Total],
DATEADD(
FILTER(
DATESMTD(dCalendario[Date]),
dCalendario[Date]<=TODAY()
),
0,
MONTH)

)
VAR VENDASM1 = CALCULATE(
[Vendas Total],
DATEADD(
FILTER(
DATESMTD(dCalendario[Date]),
dCalendario[Date]<=TODAY()
),
-1,
MONTH)

)
VAR VENDASM2 = CALCULATE(
[Vendas Total],
DATEADD(
FILTER(
DATESMTD(dCalendario[Date]),
dCalendario[Date]<=TODAY()
),
-2,
MONTH)

)
VAR RESULT = VENDASM0+VENDASM1+VENDASM2

RETURN
RESULT
Você não está autorizado a ver ou baixar esse anexo.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord