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
mariosss45
Frequent Visitor

Hide duplicates, show total per category

Hi all, 

 

I have a table with data from SQL Server, and I would like to have the following solved: 

 

In my table, I have rows where some columns have same values, but in other column a unique value. 

Now, I'd like to group the values which are the same, show the totals of the unique value. 

 

This the current situation: 

Screenshot 2022-08-05 104450.png

 

Now I wish to have a result like this: 

CustomerNumberPosTotal
24122-A10

 

How can I achieve this? Thanks for the feedback. 

1 ACCEPTED SOLUTION
ddpl
Solution Sage
Solution Sage

2 REPLIES 2
Avantika-Thakur
Solution Supplier
Solution Supplier

Hi @mariosss45 ,

You can make use of "Group By" option from the Transform section of the Power Query editor and can select the required columns using which you need to group by the data by selecting the required aggregation function.

AvantikaThakur_0-1659692217307.png

1) You will have to select the levels by which you need to group by and select the POsTotal column aggregating it to Sum as shown below

AvantikaThakur_1-1659692435654.png

 

And this will give you the below grouped results

AvantikaThakur_2-1659692471970.png

 

 

Hope this helps!

 

Please accept the solution if this answers your query.

 

Thanks,

Avantika

ddpl
Solution Sage
Solution Sage

@mariosss45 try this

 

ddpl_0-1659692267001.png

 

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.