Forum Discussion
Kylli
4 years agoRegular Visitor
Selecting rows in Power Query
Date Code Name Price Partner 26.07.2021 1819 NAPA 14,5 Firma 06.06.2022 1819 NAPA 15,2 Firma If there are two different prices in the t...
- 4 years ago
Is this what you mean?
- 4 years ago
Hi Kylli,
Step1:
GroupBy
Step2:
Replace highlighted code with Table.Max(_,"Date")
Step3:
Expand column
Regads
KT
CARL12345
4 years agoRegular Visitor
Hey kylli,
sort the the colum date in descending oder.
Write before the formula which ist used For sorting the colums: Table.Buffer
The Formula should Look Like this:
=Table.Buffer(Table.Sort())
In the second step you can select colum date and colum article and remove duplicated rows.
- Kylli4 years agoRegular Visitor
Hi,
Sorry, I didn't make my question clear.
There are many rows in the table. Most have one price per code.
Sometimes there are two or more prices per code.
If there are more prices, the latest in terms of date should be taken into account.
- AlexisOlson4 years ago
Super User
Is this what you mean?