Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
18 | |
18 | |
18 | |
17 |
User | Count |
---|---|
34 | |
25 | |
18 | |
16 | |
13 |