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
drking
Frequent Visitor

Day number in a month

For a date table I want to count the number of the day in a month which is extracted from a date. So in January the first is 1, the second day is 2 till the end of the month which is 31. In Februari the first day is 1 etcetra till the end of the month which is 28 (or 29). My DAX knowledge is not on a level yet that i can solve this. I found a year counter on the forum but I could find this monthly counter.

1 ACCEPTED SOLUTION

Hi @drking,

Congratulations, you have resolved your issue. Please mark the right reply as answer, so more people will benefit from here.

Thanks,
Angelia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

View solution in original post

5 REPLIES 5
danextian
Super User
Super User

Hi @drking
I think there is a similar formula in excel.

You can use DAY(EOMONTH(date column)) which will give you the number of days. Just use DAY for day number.









Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Great. Many thanks 2Y Danextian. Have a great weekend.

Hi @drking,

Congratulations, you have resolved your issue. Please mark the right reply as answer, so more people will benefit from here.

Thanks,
Angelia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

Many thans 4 all the support in this matter.

@drking

 

You're all welcome. After, we learn from both receiving and giving back. Smiley Very Happy










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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.