Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nicolasvc
Helper III
Helper III

Delete duplicates or pivot using dax

I have this table where I calculate the column "new" using dax, adding the offer value for each week and center, as you can see, all the rows that repeat week and center have the same value. But I would like to pivot or eliminate duplicates, the problem is that when using power query it does not show the column that I have calculated.

 

Centerweekoffernew
121-22220
121242220
322020
3222020

 

So how can I have a table like this?

 

Centerweeknew
121220
32220
1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@nicolasvc 

Instead having complex transformation steps in power query. You could create a table using dax, this is also faster in terms of loading speed.

 

Table 2 = SUMMARIZE('Table (2)',[Center],[week],[new])
Vpazhenmsft_1-1633056656402.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@nicolasvc 

Instead having complex transformation steps in power query. You could create a table using dax, this is also faster in terms of loading speed.

 

Table 2 = SUMMARIZE('Table (2)',[Center],[week],[new])
Vpazhenmsft_1-1633056656402.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Pragati11
Super User
Super User

HI @nicolasvc ,

 

I am not sure on the DAX expression that you have created.

Is it  a column or a measure?

 

If OFFER is a column than create it in Power Query instead of using DAX. In that way you will be able to see that in Power Query and remove duplicates.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Is a column I calculated it doing something like this:

 

New= CALCULATE(SUM(Table[offer]),ALLEXCEPT(Table,Table[week],Table[Center]))

 

But I did it in DAX because I couldn't find a way to do it in power query.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.