Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
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
@bml123 , if need a column, That was measure
Column = sumx(DISTINCT(SELECTCOLUMNS(filter('Table',[Id] =EARLIER('Table'[Id])),"Amt",[Amount])),[Amt])