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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

How do I return the ENTIRE table based on a particular distinct column value

Example this is my original Table:

 

I want to filter the table by UNIQUE CODE

Customer name:Code:Qty Value:
wushRTG45

wush

RTG50

abv

BAM90

art

CAV100

art

CAV100

 

How do I get a new table that is like this:

Customer name:Code:Qty Value:
wushRTG95

abv

BAM90

art

CAV200
1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

There are two ways:

1.You can directly put you columns into a table visual,then you will see:(for the field "Qty value",choosing "sum")

 

Annotation 2020-02-12 170523.pngAnnotation 2020-02-12 170618.png

 

Another way is to create a table using the dax expression below:

 

 

Table 2 = SUMMARIZE('Table','Table'[Customer name:],'Table'[Code:],"Qty value",CALCULATE(SUM('Table'[Qty Value:]),ALLEXCEPT('Table','Table'[Code:])))

 

And you will see:

 

Annotation 2020-02-12 171055.png

 

For the related .pbix file,pls click here.

 

Best Regards,
Kelly

 

 

 

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

There are two ways:

1.You can directly put you columns into a table visual,then you will see:(for the field "Qty value",choosing "sum")

 

Annotation 2020-02-12 170523.pngAnnotation 2020-02-12 170618.png

 

Another way is to create a table using the dax expression below:

 

 

Table 2 = SUMMARIZE('Table','Table'[Customer name:],'Table'[Code:],"Qty value",CALCULATE(SUM('Table'[Qty Value:]),ALLEXCEPT('Table','Table'[Code:])))

 

And you will see:

 

Annotation 2020-02-12 171055.png

 

For the related .pbix file,pls click here.

 

Best Regards,
Kelly

 

 

 

amitchandak
Super User
Super User

If you put same in table or Matrix, and sum qty you will get that.

or

New table = summarize(table,table[customer name],table[code],"Qty value",sum(table[qty value]))

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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