March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
157 | |
97 | |
79 | |
69 |