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.
Example this is my original Table:
I want to filter the table by UNIQUE CODE
Customer name: | Code: | Qty Value: |
wush | RTG | 45 |
wush | RTG | 50 |
abv | BAM | 90 |
art | CAV | 100 |
art | CAV | 100 |
How do I get a new table that is like this:
Customer name: | Code: | Qty Value: |
wush | RTG | 95 |
abv | BAM | 90 |
art | CAV | 200 |
Solved! Go to Solution.
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")
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:
For the related .pbix file,pls click here.
Best Regards,
Kelly
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")
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:
For the related .pbix file,pls click here.
Best Regards,
Kelly
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
97 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |