Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have data like this and I and I want the output as in Total column where it should sum only the distinct values from amount for each id. How do I achieve this?
Id | Amount | Total |
1 | 10 | 30 |
1 | 10 | 30 |
1 | 20 | 30 |
1 | 10 | 30 |
2 | 20 | 50 |
2 | 20 | 50 |
2 | 30 | 50 |
2 | 20 | 50 |
2 | 20 | 50 |
2 | 30 | 50 |
Solved! Go to Solution.
Hi, @bml123
Please check the below picture and the formula for creating a new column.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @bml123
Please check the below picture and the formula for creating a new column.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@bml123 , Try a new measure like
sumx(summarize(Table, Table[ID], Table[Amount]),[Amount])
@bml123 , if need a column, That was measure
Column = sumx(DISTINCT(SELECTCOLUMNS(filter('Table',[Id] =EARLIER('Table'[Id])),"Amt",[Amount])),[Amt])
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
105 | |
99 | |
39 | |
30 |