Forum Discussion
YEAR WISE DATA
hi Sir,
please help me with following scenario.
1.by default without selecting any Financial year it should show Current FY Sales(max financial year ) & Prev FY Sales.
and if i am selectiong the financial year then it should display the selected financial year months data.
I am using cloumn chart to show the comparision.
below listed is my data
| date | financial year | sales amount | Month |
| 9/12/2019 | 2019-2020 | 1 | 9 |
| 9/13/2019 | 2019-2020 | 1 | 9 |
| 9/14/2019 | 2019-2020 | 5 | 9 |
| 9/15/2019 | 2019-2020 | 5 | 9 |
| 9/16/2019 | 2019-2020 | 5 | 9 |
| 2/1/2020 | 2019-2020 | 5 | 2 |
| 2/2/2020 | 2019-2020 | 5 | 2 |
| 2/3/2020 | 2019-2020 | 9 | 2 |
| 2/4/2020 | 2019-2020 | 9 | 2 |
| 2/5/2020 | 2019-2020 | 9 | 2 |
| 2/6/2020 | 2019-2020 | 9 | 2 |
| 2/7/2020 | 2019-2020 | 9 | 2 |
| 9/12/2020 | 2020-2021 | 9 | 9 |
| 9/13/2020 | 2020-2021 | 9 | 9 |
| 9/14/2020 | 2020-2021 | 9 | 9 |
| 9/15/2020 | 2020-2021 | 1 | 9 |
| 9/16/2020 | 2020-2021 | 1 | 9 |
| 3/1/2021 | 2020-2021 | 1 | 3 |
| 3/2/2021 | 2020-2021 | 1 | 3 |
| 3/3/2021 | 2020-2021 | 1 | 3 |
| 3/4/2021 | 2020-2021 | 1 | 3 |
| 3/5/2021 | 2020-2021 | 1 | 3 |
| 3/6/2021 | 2020-2021 | 1 | 3 |
| 9/12/2021 | 2021-2022 | 1 | 9 |
| 9/13/2021 | 2021-2022 | 1 | 9 |
Greg_Deckler
amitchandak
your help required
fab196 , change the logic on your FY Start date
This FYTD=
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min =if( Month(_max) <4 , date(year(_max)-1,4,1) ,date(year(_max),4,1)), //FY April -March
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))This FYTD=
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = date(year(_max)-1,month(_max),day(_max))
var _min =if( Month(_max) <4 , date(year(_max)-1,4,1) ,date(year(_max),4,1)), //FY April -March
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
This LFY Complete=
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min =if( Month(_max1) <4 , date(year(_max1)-2,4,1) ,date(year(_max1)-1,4,1)), //FY April -March
var _max =if( Month(_max1) <4 , date(year(_max1)-1,3,31) ,date(year(_max1),3,31)), //FY April -March
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
4 Replies
- fab196Helper II
- amitchandakSuper User
fab196 , change the logic on your FY Start date
This FYTD=
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min =if( Month(_max) <4 , date(year(_max)-1,4,1) ,date(year(_max),4,1)), //FY April -March
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))This FYTD=
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = date(year(_max)-1,month(_max),day(_max))
var _min =if( Month(_max) <4 , date(year(_max)-1,4,1) ,date(year(_max),4,1)), //FY April -March
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))
This LFY Complete=
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min =if( Month(_max1) <4 , date(year(_max1)-2,4,1) ,date(year(_max1)-1,4,1)), //FY April -March
var _max =if( Month(_max1) <4 , date(year(_max1)-1,3,31) ,date(year(_max1),3,31)), //FY April -March
return
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))- fab196Helper II
hi sir,
it is not working for me