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.
My Table
GRNNO GRNDate Supplier Item Price
A1 2019/01/05 Sup1 Item1 100
A2 2019/01/10 Sup2 Item2 150
A3 2019/01/15 Sup1 Item1 120
A3 2019/01/15 Sup1 Item4 200
A4 2019/01/16 Sup3 Item4 130
A5 2019/01/20 Sup2 Item2 135
I need find last price with supplier and Item wise. How can I do it......?
Solved! Go to Solution.
Hi @Samank75
in my answer Last Price is a measure not a calculated column!
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Hi @Samank75
take a look at the following solution:
Last Price item wise =
CALCULATE(
MAX('Table'[Price]),
FILTER(
ALLEXCEPT('Table','Table'[Item]),
MAX('Table'[GRNDate]) = 'Table'[GRNDate]
)
)
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Hi @Samank75
in my answer Last Price is a measure not a calculated column!
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Why not working to me......
@Samank75 , Try like
calculate(lastnonblankvalue(table[GRNDate],max(Table[Price])) , allexcept(Table, Table[Supplier],Table[Item]))
or
calculate(lastnonblankvalue(table[GRNDate],max(Table[Price])) , filter(allselected(Table), Table[Supplier] = max(Table[Supplier]) && Table[Item]= max(Table[Item])))
Sorry not working
I use this one.
Result should be
GRNNO GRNDate Supplier Item Price
A3 2019/01/15 Sup1 Item1 120
A3 2019/01/15 Sup1 Item4 200
A4 2019/01/16 Sup3 Item4 130
A5 2019/01/20 Sup2 Item2 135
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 |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |