The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
16 | |
13 |
User | Count |
---|---|
41 | |
38 | |
24 | |
20 | |
20 |