Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 table, I want to keep only the row with the later date.
Solved! Go to Solution.
Hi @Kylli,
Step1:
GroupBy
Step2:
Replace highlighted code with Table.Max(_,"Date")
Step3:
Expand column
Regads
KT
Hi @Kylli,
Step1:
GroupBy
Step2:
Replace highlighted code with Table.Max(_,"Date")
Step3:
Expand column
Regads
KT
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.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
6 | |
6 | |
6 | |
5 |