Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi every one.
I have this list:
products---Prices
product1---1000
product2---2000
product1---900
product3---4000
product2---5000
product3---6000
and I wand to get the uniqe list off Last prices for each products with DAX Like this:
products---Prices
product1---900
product2---5000
product3---6000
Solved! Go to Solution.
Sorry Mohammad,
It was too late last night I didn't see your reply. Here is a sample file with the solution https://we.tl/t-rBJAfyJOu4
Last Price =
VAR MaxIndex = MAX ( Products[Index] )
RETURN
CALCULATE (
MAX ( Products[Prices] ),
Products[Index] = MaxIndex
)
How can I do that?
Sorry Mohammad,
It was too late last night I didn't see your reply. Here is a sample file with the solution https://we.tl/t-rBJAfyJOu4
Last Price =
VAR MaxIndex = MAX ( Products[Index] )
RETURN
CALCULATE (
MAX ( Products[Prices] ),
Products[Index] = MaxIndex
)
Thank you very much tamerj1.
open the query editor. From the add columns tab select add index column.
So what shoud I do next?
Hi tamerj1,
No, Suppose we have only these two columns.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
23 | |
21 | |
19 | |
13 | |
12 |
User | Count |
---|---|
43 | |
31 | |
25 | |
22 | |
22 |