Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I need to create a custom Year column based on between dates
Between
01/09/2014 and 31/08/2015 then 14/15 else
01/09/2015 and 31/08/2016 then 15/16 else
01/09/2016 and 31/08/2017 then 16/17 else
01/09/2017 and 31/08/2018 then 17/18 else
01/09/2018 and 31/08/2019 then 18/19 else
01/09/2019 and 31/08/2020 then 19/20 else
01/09/2020 and 31/08/2021 then 20/21 else
01/09/2021 and 31/08/2022 then 21/22 else
01/09/2022 and 31/08/2023 then 22/23 else
any idea what the correct syntax to use on this would be, please?
Solved! Go to Solution.
@Anonymous , Try a new column like
if(month([Date]) >=9 , format([Date], "YY") & "" & ((format([Date], "YY")*1)+1) ,((format([Date], "YY")*1)-1) & "" & format([Date], "YY") )
@Anonymous , Try a new column like
if(month([Date]) >=9 , format([Date], "YY") & "" & ((format([Date], "YY")*1)+1) ,((format([Date], "YY")*1)-1) & "" & format([Date], "YY") )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |