Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
hi there ,
i have a table "A "as below , i would like to create another new table" B" which shows the latest prices based on latest date .Could you pls help me
Solved! Go to Solution.
Just in case you want to do it in Power Query, you can use the concept of grouping.
Sharing the file with the logic implemented for your reference.
You could create Table B as
Table B = GENERATE( ALLNOBLANKROW( 'Table A'[Material]),
SELECTCOLUMNS( TOPN(1, 'Table A', 'Table A'[Date]), "Date", 'Table A'[Date], "Price", 'Table A'[Price])
)
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |