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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
glamanna
Frequent Visitor

Last day updated in month column

Hi everybody, I'm new to the DAX language, and I'm trying to create a DAX query to get the last day of each month in my dataset. The problem is that the last day isn't always correct; for example, January ends up on the 30th instead of the 31st. Once I find the last day, I need to assign "1" and "0" to all the other days of the month. I tried using EOMONTH, but it automatically creates the last day even when it's not present in the dataset. Thank you in advance!

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @glamanna 

Please use EOMONTH DAX 
Follow guide
https://dax.guide/eomonth/

https://learn.microsoft.com/en-us/dax/eomonth-function-dax

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

View solution in original post

1 REPLY 1
PijushRoy
Super User
Super User

Hi @glamanna 

Please use EOMONTH DAX 
Follow guide
https://dax.guide/eomonth/

https://learn.microsoft.com/en-us/dax/eomonth-function-dax

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.