Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I want to Display one column with Startofyear on MAX date on dataset.
Lets say Max date on data set is "12 feb 2021", so year start for this date is "1st January 2021"
EXPECTED RESULT: a table with Year_month dimension and a Dax Measure [Yearstart_Max_date_dataset] that shows yearstartdate from Maxdate on dataset.
Month [Yearstart_Max_date_dataset]
Feb -2021 1st January 2021
Jan-2021 1st January 2021
.....
Jan-2019 1st January 2021
.....
Jan-1999 1st January 2021
I have tried STARTOFYEAR(LASTDATE(Date)) but it changes years value over year and I am not looking for that.
I need to use DAX function.
Regards
Solved! Go to Solution.
@luisccmm , Try a measure like
measure =
var _max = maxx(allselected([Date]), 'Date'[Date])
return
eomonth(_max, month(_max)*-1) +1
@luisccmm , Try a measure like
measure =
var _max = maxx(allselected([Date]), 'Date'[Date])
return
eomonth(_max, month(_max)*-1) +1
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |