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

Last day columns over a date column with Values

I have a date column that has corresponding values. Instead of just seeing all of the dates or just one date. I want to know if there is a way where across the whole column it only takes every month's last date. So for example If my data has September 1 - December 31st I only want to see the last dates in one table for those months. 

1 ACCEPTED SOLUTION
v-yuaj-msft
Community Support
Community Support

Hi @ADCOPBI ,

 

Based on your description, you can create a measure as follows.

Measure =

var x1=ENDOFMONTH('Table'[Date])

return

IF(MAX('Table'[Date])=x1,1,0)

 

Result:

v-yuaj-msft_0-1607505250706.png

 

v-yuaj-msft_1-1607505250709.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuaj-msft
Community Support
Community Support

Hi @ADCOPBI ,

 

Based on your description, you can create a measure as follows.

Measure =

var x1=ENDOFMONTH('Table'[Date])

return

IF(MAX('Table'[Date])=x1,1,0)

 

Result:

v-yuaj-msft_0-1607505250706.png

 

v-yuaj-msft_1-1607505250709.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

littlemojopuppy
Community Champion
Community Champion

Yes.  Add a transformation step in Power Query using the Date.EndOfMonth function

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.