Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

First Entry of Each Month

Hi,

 

Is there a way to display the first date of entry for each month for each person?

 

I was able to find the very first entry of the year, but I want to somehow create a column that represents the first entry of each month, so I can use this column to find the number of days between the first entry of each month, and todays date

 

Currently, my formula to find the first entry is below:

Date of First Entry 2020 = calculate(firstnonblank(CP_Consolidated[2020 Dates],1),allexcept(CP_Consolidated,CP_Consolidated[Crew#]))

 

Thank you!
Sarah

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@amitchandak 

So this correctly finds the first day of the full year, but is there a way to find the first date for each month? so when it becomes February, instead of "1/2/2020", the correct output would be "2/3/2020"?

 

Capture.PNG

 

Thank you!
Sarah

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@Anonymous add this measure to get first entry of each month, assuming you have a date dimension in your model. As a best practice, add date dimension in your model and use it for and time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools.

https://perytus.com/2020/05/22/create-a-basic-date-table-in-your-data-model-for-time-intelligence-calculations/

 

First Entry Measure = CALCULATE( FIRSTNONBLANK( 'Calendar'[Date] , 1), CP_Consolidated )

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

amitchandak
Super User
Super User

@Anonymous , you need have month year column,

view this my month -year


FIRSTNONBLANKVALUE(CP_Consolidated[Crew#],Max(CP_Consolidated[2020 Dates]))

or

FIRSTNONBLANKVALUE(CP_Consolidated[month-year],FIRSTNONBLANKVALUE(CP_Consolidated[Crew#],Max(CP_Consolidated[2020 Dates])))

Anonymous
Not applicable

@amitchandak 

So this correctly finds the first day of the full year, but is there a way to find the first date for each month? so when it becomes February, instead of "1/2/2020", the correct output would be "2/3/2020"?

 

Capture.PNG

 

Thank you!
Sarah

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors