Hi guys,
I am looking for some help – This is a BIG ASK …
I would like to do the following:
To make things easier the Dataset Name is TblHeadlease and the column names are in brackets above..TblHeadlease
Hi, @Alice_Cooper
1. In response to the first question, I don't know much, is it a filter about time, or a filter for residential type, please explain with examples.
2. You can try the following methods to structure a fiscal year.
Date table Column:
Fin Year =
RIGHT ( IF ( MONTH ( [Date] ) <= 6, YEAR ( [Date] ) - 1, YEAR ( [Date] ) ), 2 ) & "-"
& RIGHT (
IF ( MONTH ( [Date] ) <= 6, YEAR ( [Date] ) - 1, YEAR ( [Date] ) ) + 1, 2 )
Cal Year = YEAR([Date])
table column:
Fin Year = LOOKUPVALUE('Date'[Fin Year],'Date'[Date],[EOMRPT])
Cal Year = LOOKUPVALUE('Date'[Cal Year],'Date'[Date],[EOMRPT])
3. The third question is, is this the result you expect?
4. Please elaborate with examples.
5.You can't create dynamic columns, but you can create dynamic Measure.
Measure = IF(SELECTEDVALUE('Date'[Fin Year])=SELECTEDVALUE('Table'[Fin Year]),1,0)
I only simulated 20 pieces of data from you, if you need more, try to provide Excel data. Please tell us what you expect the output to be.
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.
Clarification
TblHeadlease | |||||||||||
Property ID | EOMRPT | Lease Start Date | Lease Term Months | Lease End Date | Suburb | Dwelling Type | Number of Bedrooms | Fin Year | Cal Year | Fin Year To Date | Cal Year To Date |
1 | May-19 | 1/04/2019 | 6 | 1/10/2019 | Spring Hill | Unit | 2 | 18-19 | 2019 | ||
2 | May-19 | 2/04/2019 | 6 | 2/10/2019 | Paddington | Townshouse | 2 | 18-19 | 2019 | ||
3 | May-19 | 3/04/2019 | 6 | 3/10/2019 | Paddington | Townshouse | 2 | 18-19 | 2019 | ||
4 | Jun-19 | 1/06/2019 | 6 | 1/12/2019 | Paddington | Townshouse | 2 | 18-19 | 2019 | ||
5 | Jun-19 | 2/06/2019 | 6 | 2/12/2019 | Spring Hill | Unit | 2 | 18-19 | 2019 | ||
6 | Jul-19 | 30/06/2019 | 12 | 30/06/2020 | Red Hill | Detached | 3 | 19-20 | 2019 | ||
7 | Jul-19 | 1/07/2019 | 12 | 1/07/2020 | Petrie Terrace | Townshouse | 2 | 19-20 | 2019 | ||
8 | Jul-19 | 2/07/2019 | 18 | 2/01/2021 | Mount Glorious | Detached | 4 | 19-20 | 2019 | ||
9 | Aug-19 | 8/08/2019 | 6 | 8/02/2020 | Bardon | Unit | 1 | 19-20 | 2019 | ||
10 | Aug-19 | 9/08/2019 | 6 | 9/02/2020 | Mount Glorious | Detached | 4 | 19-20 | 2019 | ||
11 | Sep-19 | 3/09/2019 | 6 | 3/03/2020 | Petrie Terrace | Townshouse | 2 | 19-20 | 2019 | ||
12 | Sep-19 | 4/09/2019 | 12 | 4/09/2020 | Mount Glorious | Detached | 4 | 19-20 | 2019 | ||
13 | Sep-19 | 5/09/2019 | 6 | 5/03/2020 | Petrie Terrace | Townshouse | 2 | 19-20 | 2019 | ||
14 | Sep-19 | 6/09/2019 | 6 | 6/03/2020 | Stafford | Townshouse | 2 | 19-20 | 2019 | ||
15 | Oct-19 | 27/09/2019 | 6 | 27/03/2020 | Stafford | Townshouse | 2 | 19-20 | 2019 | ||
16 | Oct-19 | 28/09/2019 | 12 | 28/09/2020 | Spring Hill | Unit | 2 | 19-20 | 2019 | ||
17 | Nov-19 | 15/11/2019 | 6 | 15/05/2020 | Arana Hills | Unit | 2 | 19-20 | 2019 | ||
18 | Nov-19 | 16/11/2019 | 12 | 16/11/2020 | Stafford | Townshouse | 2 | 19-20 | 2019 | ||
19 | Nov-19 | 17/11/2019 | 6 | 17/05/2020 | Spring Hill | Unit | 2 | 19-20 | 2019 | ||
20 | Nov-19 | 18/11/2019 | 6 | 18/05/2020 | Arana Hills | Unit | 2 | 19-20 | 2019 | ||
21 | Dec-19 | 29/11/2019 | 6 | 29/05/2020 | Ferny Grove | Detached | 3 | 19-20 | 2019 | ||
22 | Dec-19 | 30/11/2019 | 6 | 30/05/2020 | Mount Glorious | Detached | 4 | 19-20 | 2019 | ||
23 | Jan-20 | 6/01/2020 | 6 | 6/07/2020 | Samford | Detached | 3 | 19-20 | 2020 | ||
24 | Jan-20 | 7/01/2020 | 6 | 7/07/2020 | Mount Glorious | Detached | 4 | 19-20 | 2020 | ||
25 | Jan-20 | 8/01/2020 | 6 | 8/07/2020 | Spring Hill | Unit | 2 | 19-20 | 2020 | ||
26 | Feb-20 | 2/02/2020 | 12 | 2/02/2021 | Mount Glorious | Detached | 3 | 19-20 | 2020 | ||
27 | Feb-20 | 3/02/2020 | 6 | 3/08/2020 | Mount Glorious | Detached | 4 | 19-20 | 2020 | ||
28 | Mar-20 | 3/03/2020 | 6 | 3/09/2020 | Paddington | Unit | 2 | 19-20 | 2020 | ||
29 | Apr-20 | 1/04/2020 | 6 | 1/10/2020 | Red Hill | Unit | 2 | 19-20 | 2020 | ||
30 | Apr-20 | 2/04/2020 | 6 | 2/10/2020 | Mount Glorious | Detached | 4 | 19-20 | 2020 | ||
31 | Apr-20 | 3/04/2020 | 6 | 3/10/2020 | Surfer Paradise | Unit | 1 | 19-20 | 2020 | ||
32 | May-20 | 4/05/2020 | 6 | 4/11/2020 | Bardon | Townshouse | 3 | 19-20 | 2020 | ||
33 | Jun-20 | 15/06/2020 | 6 | 15/12/2020 | Petrie Terrace | Townshouse | 2 | 19-20 | 2020 | ||
34 | Jul-20 | 1/07/2020 | 6 | 1/01/2021 | Mount Glorious | Detached | 4 | 20-21 | 2020 | ||
35 | Aug-20 | 8/08/2020 | 12 | 8/08/2021 | Paddington | Townshouse | 2 | 20-21 | 2020 | ||
36 | Sep-20 | 3/09/2020 | 6 | 3/03/2021 | Red Hill | Townshouse | 2 | 20-21 | 2020 | ||
37 | Sep-20 | 4/09/2020 | 6 | 4/03/2021 | Surfer Paradise | Unit | 1 | 20-21 | 2020 | ||
38 | Sep-20 | 5/09/2020 | 6 | 5/03/2021 | Paradise Island | Unit | 1 | 20-21 | 2020 | ||
39 | Sep-20 | 6/09/2020 | 6 | 6/03/2021 | Milton | Unit | 2 | 20-21 | 2020 | ||
40 | Oct-20 | 24/09/2020 | 6 | 24/03/2021 | Bardon | Unit | 1 | 20-21 | 2020 | ||
41 | Nov-20 | 2/11/2020 | 6 | 3/05/2021 | Milton | Unit | 2 | 20-21 | 2020 | ||
42 | Nov-20 | 3/11/2020 | 12 | 5/12/2021 | Bardon | Townshouse | 3 | 20-21 | 2020 | ||
43 | Dec-20 | 5/12/2020 | 6 | 5/06/2021 | Milton | Unit | 1 | 20-21 | 2020 | ||
44 | Jan-21 | 18/01/2021 | 6 | 18/07/2021 | Bundall | Detached | 3 | 20-21 | 2021 | ||
45 | Feb-21 | 5/02/2021 | 12 | 5/02/2022 | Spring Hill | Unit | 2 | 20-21 | 2021 | ||
46 | Feb-21 | 6/02/2021 | 6 | 6/08/2021 | Surfer Paradise | Unit | 1 | 20-21 | 2021 | ||
47 | Feb-21 | 7/02/2021 | 12 | 7/02/2022 | Paradise Island | Unit | 1 | 20-21 | 2021 | ||
48 | Mar-21 | 5/03/2021 | 6 | 5/09/2021 | Paddington | Unit | 2 | 20-21 | 2021 | ||
49 | Apr-21 | 4/04/2021 | 6 | 4/10/2021 | Surfer Paradise | Unit | 1 | 20-21 | 2021 | ||
50 | Apr-21 | 5/04/2021 | 6 | 5/10/2021 | Petrie Terrace | Townshouse | 2 | 20-21 | 2021 | ||
51 | Apr-21 | 6/04/2021 | 6 | 6/10/2021 | Surfer Paradise | Unit | 1 | 20-21 | 2021 | ||
52 | May-21 | 5/05/2021 | 6 | 5/11/2021 | Paradise Island | Unit | 1 | 20-21 | 2021 | ||
53 | Jun-21 | 30/06/2021 | 6 | 30/12/2021 | Samford Valley | Detached | 3 | 20-21 | 2021 | ||
54 | Jun-21 | 1/07/2021 | 12 | 1/07/2022 | Surfer Paradise | Unit | 1 | 20-21 | 2021 | ||
55 | Jun-21 | 2/07/2021 | 6 | 2/01/2022 | Petrie Terrace | Townshouse | 2 | 20-21 | 2021 | ||
56 | Jul-21 | 4/07/2021 | 6 | 4/01/2022 | Mount Nebo | Detached | 3 | 21-22 | 2021 | ||
57 | Aug-21 | 6/08/2021 | 6 | 6/02/2022 | Springbrook | Detached | 3 | 21-22 | 2021 | ||
58 | Sep-21 | 3/09/2021 | 6 | 3/03/2022 | Samford | Detached | 3 | 21-22 | 2021 |