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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
porjaiko
Frequent Visitor

How to do Show Last Data by Month

How to do Show Last Data by Month?

 

If select BRN_CODE and show last date by month (red line).

follow in this pic.

 

2020-07-17_11-10-35.png

 

I need you help.

Thank you

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

Hi @porjaiko ,

 

We can create two calculate columns to meet your requirement.

 

1. Create a month column.

 

Month = MONTH('Table'[Date])

 

HOW1.jpg

 

2. Create a date column that calculate the max date in the same month.

 

Date Column = CALCULATE(MAX('Table'[Date]),FILTER('Table','Table'[BRN_CODE]=EARLIER('Table'[BRN_CODE]) && 'Table'[Month]=EARLIER('Table'[Month])))

 

How2.jpg

 

3. Then we can create a table visual and put the Date column in it.

 

How3.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

View solution in original post

3 REPLIES 3
v-zhenbw-msft
Community Support
Community Support

Hi @porjaiko ,

 

How about the result after you follow the suggestions mentioned in my original post?

Could you please provide more details or expected result about it If it doesn't meet your requirement?

If you've fixed the issue on your own please kindly share your solution.

 

Best regards,

 

Community Support Team _ zhenbw

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

v-zhenbw-msft
Community Support
Community Support

Hi @porjaiko ,

 

We can create two calculate columns to meet your requirement.

 

1. Create a month column.

 

Month = MONTH('Table'[Date])

 

HOW1.jpg

 

2. Create a date column that calculate the max date in the same month.

 

Date Column = CALCULATE(MAX('Table'[Date]),FILTER('Table','Table'[BRN_CODE]=EARLIER('Table'[BRN_CODE]) && 'Table'[Month]=EARLIER('Table'[Month])))

 

How2.jpg

 

3. Then we can create a table visual and put the Date column in it.

 

How3.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

amitchandak
Super User
Super User

@porjaiko , View one of these two by month year column

 

Month Year = format(Table[Date],"YYYYMM")

 

lastnonblank(Table[Date],blank())
lastnonblankvalue(Table[Date],max(Table[Date]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.