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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gssarathkumar
Helper I
Helper I

Check End of the Month and return Value

I have a below table, I need to add a condition column to check the end date of a month and return a value as below:

 

gssarathkumar_0-1725891180029.png


Kindly help me to get the same.

 

@amitchandak @Greg_Deckler @lbendlin @DesktopOwl @Goodlytics4U @HelpMe @Ahmedx @v-huijie-msft 

 

 

1 ACCEPTED SOLUTION

Hi  

Please look into my previous comment, both Power Query & DAX solutions mentioned

if [Date] = Date.EndOfMonth([Date]) then "True" else "False"

PijushRoy_0-1725892318603.png




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

7 REPLIES 7
gssarathkumar
Helper I
Helper I

I need to do this in the Power Query, I will have to find out the month end and then use the respective Binary content.

 

@nandic @lbendlin @PijushRoy 

Hi  

Please look into my previous comment, both Power Query & DAX solutions mentioned

if [Date] = Date.EndOfMonth([Date]) then "True" else "False"

PijushRoy_0-1725892318603.png




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





[Date] = Date.EndOfMonth([Date])
PijushRoy
Super User
Super User

Hi @gssarathkumar 

In DAX calculated column

Column = If(
    'Table'[Date] = EOMONTH('Table'[Date],0), "True","False")

PijushRoy_0-1725891806501.png


If you need in Power Query, please find the custom conditional column syntax

if [Date] = Date.EndOfMonth([Date]) then "True" else "False"

PijushRoy_1-1725891867054.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





lbendlin
Super User
Super User

Since you seem to want to return a boolean you could simply write

 

Column = [Date]=EOMONTH([Date],0)

PijushRoy
Super User
Super User

Hi @gssarathkumar 

Please find the DAX calculated column formula

Column = If(
    'Table'[Date] = EOMONTH('Table'[Date],0), "True","False")

PijushRoy_0-1725891587696.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





nandic
Super User
Super User

Formula for required column would be:

Required Formula = IF('Table'[Date]=ENDOFMONTH('Table'[Date]),TRUE(),FALSE())

Cheers,
Nemanja Andic

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors