March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
167 | |
148 | |
92 | |
72 | |
58 |