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
Hello,
I have the following table:
| A | B |
|----|----|
| A1 | M1 |
| A1 | M2 |
| A2 | M5 |
| A2 | M3 |
| A2 | M1 |
| A2 | M3 |
| A3 | M7 |
| A3 | M1 |
I need to find the distinct elements on the column 'A' and to create another column with the first element of the column 'B' found for the element in 'A'. The result will be something like this:
| A | B |
|----|----|
| A1 | M1 |
| A2 | M5 |
| A3 | M7 |
I've already tried several ways but I don't know how to obtain the final result...
Does anyone knows how to help me with this one please ?
Hi @capko
In the power query view, choose remove duplicate under rows, and this should do it. or use distinct ( as a measure or calculated column)
I need to do it using DAX. I started like this:
Test=
VAR A = SUMMARIZE(Table;Table[A])
RETURN A
But with this I only can return a table with distinct elements
It wont work as requested because the output wont be the same as the one shown in m first post
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.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
82 | |
77 | |
48 | |
39 |
User | Count |
---|---|
150 | |
117 | |
67 | |
64 | |
56 |