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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Titus_D
Helper I
Helper I

Latest date

Hi Experts,

 

I am new to Power BI and have a question, i know how to get this in a pivot in excel but trying hard to convert the same idea in Power BI. I have data as below.

 

Type(From table 1)Item(From table 2)Created on(From table 2)
FruitAppleJan 2
FruitAppleJun 12
FruitOrangeSep 22
CarHondaMar 14
CarNissanMay 14
CarBMWOct 24
VegetableCarrotNov 16
VegetableCarrotOct 10
VegetableCarrotMar 22

 

I want a list to look like the below, which basically is the last day a record was created in that category.

Type(From table 1)Created on (From table 2)
FruitSep 22
CarOct 24
VegetableNov 16

 

With that result the created on column should be sorted from the last date first.

Thanks in advance for your help and response.

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Titus_D 

you can create this formula like this:

  1. Right click table name in field list, choose New Measure.
  2. Copy and paste the formula from my previous post or write it manuelly into the formulabar.
  3. Press Enter.

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

 

View solution in original post

5 REPLIES 5
FrankAT
Community Champion
Community Champion

Hi @Titus_D 

what about the following solution:

 

22-10-_2020_14-42-35.png

Max Date = CALCULATE(MAX('Table'[Created on]),ALLEXCEPT('Table','Table'[Type]))

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

@FrankAT  thanks for your response.

 

I am completely new to Power BI so excuse me for some basic questions. Where is the place where i put that formula? Should i click on the column in the visualisation pane and then right click and select quick measure and put the formula there?

FrankAT
Community Champion
Community Champion

Hi @Titus_D 

you can create this formula like this:

  1. Right click table name in field list, choose New Measure.
  2. Copy and paste the formula from my previous post or write it manuelly into the formulabar.
  3. Press Enter.

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

 

camargos88
Community Champion
Community Champion

@Titus_D ,

 

I do not know how you are relating those table, if you are. However if you just drag the date column and change the aggregation to max, you get the result you want.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



@camargos88  thanks for your response.

 

Where is the option to agreegate and max

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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