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.
Hi,
I need help with an issue.
I have a column with a project number [Projektnr], which has a delivery type [Leverancetype].
The [Projektnr] column has some duplicates. Whenever there is a duplicate, I need to return the [Leverancetype], which has the latest date [Datostempel].
I have tried using a variation of LOOKUPVALUE formulas, MAXX formulas etc., but cannot seem to make it work.
I have posted a screenshot of the table to make the abovementioned more clear.
Table
I would really appreciate, if anyone could help me with my issue!!
Regards
Solved! Go to Solution.
You may refer to the following DAX that creates a new table.
Table = FILTER ( Table1, RANKX ( CALCULATETABLE ( Table1, ALLEXCEPT ( Table1, Table1[Projektnr] ) ), Table1[Datostempel], , DESC, DENSE ) <= 1 )
You may refer to the following DAX that creates a new table.
Table = FILTER ( Table1, RANKX ( CALCULATETABLE ( Table1, ALLEXCEPT ( Table1, Table1[Projektnr] ) ), Table1[Datostempel], , DESC, DENSE ) <= 1 )
Hi @Joachimnicho,
Just try this:
Create new column: Latest Date = if(Sheet3[Date]=max(Sheet3[Date]),"Latest","")
and then just filter by "Latest"
Hope this helps.
Regards
Abduvali
The problem is, that I need to return the [Leverancetype] for all the [Projektnr], but take the [Projektnr] and corresponding [Leverancetype] with the latest date [Datostempel] if the [Projektnr] is duplicated.
As a last thing. When this works out, I need to return the value [Leverancetype] in a different table, with a LOOKUPVALUE(Projektspec[Leverancetype]; 'Projektspec'[Projektnr];'Job Task'[Projektnr]), without it saying:
"A table of multiple values was supplied where a single value was expected"
So basically, I need to attach a filter to my LOOKUPVALUE, which makes it return the [Leverancetype] for all [Projektnr] and the [Leverancetype] with the latest date if the [Projektnr] is duplicated.
Hope this made my situation more clear
Regards
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 |
---|---|
78 | |
78 | |
58 | |
35 | |
32 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |