Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I need to find the first day of the month from the month an employee started, but use the current year.
I'm trying to do this with a Measure in PBI desktop.
I tried the below measure formula, but it doesn't recognize the "Month" portion of the formula:
The [Start Date] field is a Date field:
Solved! Go to Solution.
HI @AMR80
Try the below formula:
HI @AMR80
Try the below formula:
That did it @Anonymous !! Thank you very much
Hell0 @AMR80 ,
try with below measure,
That got me much closer thank you! The only issue now is the DAY. It returned 3/5/2021 instead of 3/1/2021. The actual Start Date in the Start Date field is 3/19/2018. Here is what your formula returned in PBI:
You need to pass a number between 1 and 12 for the month parameter. You're trying to pass a date there.
Also, a measure is evaluated in context so if using a field from the data it has to have an aggregation round it (MIN, MAX etc) . So please be aware whent constructing the measure.
Thank you @HotChilli but I still cannot get it to work. Can you suggest a measure formula that would take this date (for example): 3/9/2018 and return: 3/1/2021 (the first of the month from the original date and the current year).
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 23 |