cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sr12
Helper I
Helper I

Add non-repeated columns

Hello everyone,

 

In the attached picture, i need to add how much residential and commercial do i have with removing the repeated customer names in Power BI. So that at the end i have 2 residential and 1 commercial. How can i do that?

 

Screenshot 2021-10-19 124145.jpg

 

Thanks in advance!

3 REPLIES 3
timg
Solution Sage
Solution Sage

Hi sr12,

You could do this by opening the Power Query editor, selecting all columns, and then right click and press "remove duplicates". 

1.png

This will remove all duplicate rows based on the columns you selected.

 

regards,

 

Tim





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @timg,

Thank you for your reply,

 

I dont want to permenantly remove the columns since i need them for other measures, so the table is actually bigger than that.

Anonymous
Not applicable

@sr12 Try this:

Measure=var tempTable=SUMMARIZE('Table','Table'[Customer],'Table'[Vartical])

return COUNTROWS(tempTable)

 

Helpful resources

Announcements
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.