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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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])))

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])))

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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