Forum Discussion
Anonymous
5 years agoNot applicable
Select data according to certain date
Hi everyone, I would ask for your support and knowledge to help me to solve this topic. I have a set of prices, for few contracts, launched in some dates. I need to filter all the items which its ...
camargos88
Community Champion
5 years agoAnonymous ,
Dá uma olhada no arquivo anexado.
Criei uma fórmula para comparar as datas e filtrar o visual:
_Filtro =
VAR _dateCotacao = SELECTEDVALUE('Table'[DATA_COTACAO])
VAR _dateContrato = DATE(SELECTEDVALUE('Table'[Ano_Contrato]), SELECTEDVALUE('Table'[Mês Contrato]), 1)
RETURN IF(_dateContrato >= _dateCotacao, 1, 0)Anonymous
5 years agoNot applicable
Olá camargos88 ! Vi o ficheiro que enviaste. Quando selecciono o filtro "0", obtenho 3 itens acima da ultima data do mercado. Da mesma forma se seleccionar o filtro "1", a query devolve 6 itens com mes/ano abaixo da ultima data do mercado.