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
oitp
Helper I
Helper I

Show only data from the latest date

Hi, I have a table as below (example). I want to create a report only showing the latest event for each customer but I can't seem to wrap my head around it. 

 

Any help is welcome 🙂

 

 

CustomerNr1

Event 1

19/01/01

CustomerNr2

Event 1

19/03/03

CustomerNr1

Event 2

19/02/02

CustomerNr2

Event2

19/04/04

 

 

I want to show this view:

 

CustomerNr2

Event 1

19/03/03

CustomerNr2

Event2

19/04/04

       

1 ACCEPTED SOLUTION

hmmm, try a matrix instead of a table. Then you should be fine.

View solution in original post

6 REPLIES 6
cnweke
Resolver II
Resolver II

The MAX() function solves this problem. 

Maxdate = MAX(date) <- measure.

Then add it to your column where your date normally is

I think I might be doing something wrong. If I create a measure like this: MaxDate = MAX('Calendar'[Date]) and then use this together with my column called "CustomerName" I end up with all the Customers in one column and todays date in the other.

 

So I don't get the latest event date for the customer, just the latest possible date. 😞

can you add event to that table?

Yes, but even with Events added I still end up with the same result. I have verified that my date column is formatted as Date/Time.

hmmm, try a matrix instead of a table. Then you should be fine.

Ah, thanks alot @cnweke ! You made my day, it works fine with matrix 🙂

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.

Top Solution Authors