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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MSuser5
Helper III
Helper III

Latest month data not showing

Hi All,

 

Have quick question i have created measure which is showing latest month value (will be May'2023) it's working fine.

But when i add employee name in the table it's showing all the months data.

( it should show latest month values with employee name -  need only may'23 data) if user select slicer month then relevant month should show

 

please suggest: measure

_Latest Month Count = VAR endDate = MAX(table[MonthDate])

RETURN

CALCULATE(sum ( [sales]),table[MonthDate] = endDate)

 

latest month.PNGissue2.PNG

 

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

Share raw data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

Please find the sample raw data and expect

ed result. I want to show latest month (default ) top 3 names.. if user required they can select months in slicer.

NameSalesMonthDate
AAA112545301/01/2023
DDD1811601/02/2023
BB11537301/01/2023
AAA11535901/03/2023
CCC1464701/02/2023
FFFF1373601/03/2023
DDD1326201/01/2023
RRR1278401/03/2023
RRR1277101/02/2023
TTT1276101/03/2023
EEE1253301/01/2023
AAA11220901/04/2023
EEE1169701/02/2023
RRR1158301/04/2023
TTT1107101/04/2023
EEE999001/04/2023
FFFF992501/01/2023
DDD981001/05/2023
FFFF971601/05/2023
TTT793401/05/2023
YYY772301/05/2023
EEE744001/05/2023

 

Expected as default resulrt to be :

Capture.PNG

 

Thanks for your support.

I am still not clear about what you want but here's a start.  Download the attached file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

 

Thanks for the update, As same result i want to show only latest month data in the table chart if user required to see any other month then they will select from month sclier.

 

So how to show default latest month only.

Capture.PNG

Thanks,

You are welcome.  It is easier to just select the latest or any other month in the slicer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur  - Can't we show latest month as default without selecting from slicer.?

Someone else will help you with this.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
MSuser5
Helper III
Helper III

Hi All,

 

Kindly help me on this with employer name i need to show latest month values only... When i applied above measure then all the months data appearing please suggest on this.

issue2.PNG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.