Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi,
I need to create a measure to store the beginning of -6 months from today for comparrision. If it is 14th June 2023 today, then it should give me 1st of December 2022. Can someone please help?
I am looking for something like the one below but this does not work.
STARTOFMONTH(DATEADD(TODAY(), -6, MONTH))
Thanks.
Solved! Go to Solution.
@armchairexpert Try:
Measure =
VAR __EOMonth = EOMONTH( TODAY(), -6 )
VAR __Return = DATE( YEAR( __EOMonth ), MONTH( __EOMonth ), 1 )
RETURN
__Return
@armchairexpert Try:
Measure =
VAR __EOMonth = EOMONTH( TODAY(), -6 )
VAR __Return = DATE( YEAR( __EOMonth ), MONTH( __EOMonth ), 1 )
RETURN
__Return
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
81 | |
53 | |
37 | |
35 |