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
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
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.