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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
ppatil
Helper III
Helper III

First occurrence value display in table visual

Hi Community..!!
I need to create a table visual which consist of 1st occurrence of each product. Please refer the below sample data.

Product 

category 

price 

P1 

c1 

10 

p2 

c2 

20 

p3 

c3 

30 

P1 

c4 

40 

p2 

c5 

50 

p3 

c6 

60 

p4 

c7 

70 

 

How can I achieve this?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ppatil , Try a measure like the one below with the above fields. Add an index column in the power query first

 

calculate(max(Table[Price]), filter(Table, Table[Index] = minx(filter(allselected(Table), Table[Product] = max(Table[Product])), Table[Index])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@ppatil , Try a measure like the one below with the above fields. Add an index column in the power query first

 

calculate(max(Table[Price]), filter(Table, Table[Index] = minx(filter(allselected(Table), Table[Product] = max(Table[Product])), Table[Index])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank U @amitchandak 

Shishir22
Solution Sage
Solution Sage

Hello @ppatil ,

 

Do we have date/time field in data?

How to identify which record is first?

 

Thanks.

Shishir

Cheers,
Shishir

Hello @Shishir22 
No such column to identify which is the first record.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors