This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I have a power BI report builder which has duplicated rows (column A) as below. I need to calculate sum of column B based on unique values in column A. Please let me know the report builder expression.
| Column A | Column B |
| PartA | 150 |
| PartB | 100 |
| PartA | 150 |
| PartB | 100 |
| PartC | 200 |
| PartC | 200 |
I need the expression which would calculate sum of PartA + PartB + PartC = 150+100+200 = 450
Thanks to assist.
Regards,
Muralidhar
Solved! Go to Solution.
@murali5431
A simple measure should do:
@murali5431
A simple measure should do:
@Anonymous It did work when I tried it in the power BI desktop where I have built the dataset. But, when I import this measure to the report builder report to which dataset is connected, it just gives me the first row value. Can you let me know what needs to be tweaked?
Hi !
Does the values in ColumnB will always be exactly same for repeted ColumnA members. How you want the calculation to work if you have have PartA with 2 distinct values in ColumnB, 150 & 120. What you want to do in this scenrio.
Regards,
Values in ColumnB will always be exactly same for repeted ColumnA members, so we can ignore the scenario of columnB having different values for a value in column A.
Thanks for checking!
Regards,
Muralidhar
Hi !
I would solve this like below;
1) Create a new table using DAX;
Go to Modelling Tab -> New Table, provide following DAX
NewTable = SUMMARIZE(Table, Table[ColumnA], Table[ColumnB])
Table is the name of your table, you can replace it with your table name in the formula.
Now create a measure to sum column B, use following DAX
NewSum = SUM(NewTable[ColumnB])
Hope this will solve your requirement.
Regards,
Hasham
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |