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.
Hello everyone,
.
So in my Report I use two slicers one for the MONTH (1,2,3,4 ....12) and the other one for YEAR (2014, 2015 .... 2020). So I want to create a measure that when I choose the month & year from the slicer it returns the 01st of the following month.
Example
MONTH = 7 (selected from a slicer)
YEAR = 2015 (selected from a slicer)
Measure returns = 01/08/2015 in date format.
Thanks in advance 🙂
EDIT: The correct syntax is :
Measure = EDATE(DATE(SELECTEDVALUE(Slicer[Year], SELECTEDVALUE(Slicer[Month]),1),1)
Solved! Go to Solution.
Hi @Anonymous
Measure =
DATE ( SELECTEDVALUE ( SlicerT[Year] ), SELECTEDVALUE ( SlicerT[Month] ), 1 )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi,
If the month and year are from the Calendar Table, then try this measure
=max(calendar[Date])+1
Hi @Anonymous
Measure =
DATE ( SELECTEDVALUE ( SlicerT[Year] ), SELECTEDVALUE ( SlicerT[Month] ), 1 )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
The correct syntax is:
Measure = EDATE(DATE(SELECTEDVALUE(Slicer[Year], SELECTEDVALUE(Slicer[Month]),1),1)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
74 | |
63 | |
51 | |
47 |
User | Count |
---|---|
211 | |
85 | |
64 | |
59 | |
56 |