Forum Discussion
Doubts about time intelligence
tengo la siguiente información actualizada a hoy, agosto 2022
Quiero configurar a través de la fecha (date) que muestre la información a mes vencido, esto es que muestre informacion de 2021 y 2022. Específicamente de enero 2021 a julio 2022, ya que estamos en agosto. En el mes siguiente (septiembre) debe ser de enero 2021 a agosto 2022.
Ya en febrero 2023, debe mostrar información de enero 2022 a enero 2023, y así sucesivamente mes con mes.
Quisiera saber si esto se puede configurar desde power query o con un filtro a nivel objeto visual
Gracias por sus comentarios
Date X1 X2
| 01/01/2021 | 96.7 | 97.5 |
| 01/02/2021 | 96.7 | 97.1 |
| 01/03/2021 | 97.2 | 96.5 |
| 01/04/2021 | 97 | 96.6 |
| 01/05/2021 | 96.6 | 97.3 |
| 01/06/2021 | 97.21 | 97 |
| 01/07/2021 | 93.2 | 94.1 |
| 01/08/2021 | 94.9 | 94.6 |
| 01/09/2021 | 92.1 | 94 |
| 01/10/2021 | 94.9 | 97.1 |
| 01/11/2021 | 96.4 | 96.7 |
| 01/12/2021 | 95.4 | 96.7 |
| 01/01/2022 | 95.9 | 95.5 |
| 01/02/2022 | 94.4 | 94.7 |
| 01/03/2022 | 94.3 | 95.2 |
| 01/04/2022 | 95.4 | 95.7 |
| 01/05/2022 | 96 | 97.4 |
| 01/06/2022 | 95.5 | 98.1 |
| 01/07/2022 | 96.7 | 97.5 |
| 01/08/2022 | 97 | 97.9 |
| 01/09/2022 | 0 | 0 |
| 01/10/2022 | 0 | 0 |
| 01/11/2022 | 0 | 0 |
| 01/12/2022 | 0 | 0 |
Hi Anonymous ,
Pls test create the below measure ,then apply it as filter:
FILTER = VAR today1 = DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ) - 1 VAR lastyear = DATE ( YEAR ( today1 ) - 1, 1, 1 ) RETURN IF ( MAX ( 'Table'[Date] ) >= lastyear && MAX ( 'Table'[Date] ) <= today1, 1, 0 )If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Lucien
2 Replies
- amitchandakSuper User
Anonymous , With help from date table
YTD Today till last month =
var _min = eomonth(today(),-1*month(today()))+1
var _max = eomonth(today() ,-1)
return
CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max)) - v-luwang-msftCommunity Support
Hi Anonymous ,
Pls test create the below measure ,then apply it as filter:
FILTER = VAR today1 = DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ) - 1 VAR lastyear = DATE ( YEAR ( today1 ) - 1, 1, 1 ) RETURN IF ( MAX ( 'Table'[Date] ) >= lastyear && MAX ( 'Table'[Date] ) <= today1, 1, 0 )If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Lucien