Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hello all,
I would like to ask is there any way to sum up numbers in a table string and add them into a new column.
I have this table here and inside there are three column I would like to sum up the numbers from: Usage(MB), Usage(MB)_1, Usage(MB)_2. I have been struggling because I dont know if there is a way to do it in power query
Solved! Go to Solution.
Make sure you're entering the correct columns. Power Query is case-sensitive:
Hi @Anonymous
Try this:
List.Sum([Table Column][Column A]) + List.Sum([Table Column][Column B])
[Table Column][Column A] will access a column within a table as a list. List.Sum will sum all the values in that column and will work only if the content of the column accessed are indeed numbers. If they are not numbers, the contents need to be converted to numbers first before the sum operation.
List.Sum( List.Transform( [Table Column][Column A], each try Number.From(_) otherwise null ) )
The code above tries to convert each element in the list to a number and if the conversion errors out returns null.
If a column in the table contains only one row, you can access its content with:
[Table Column][Column A]{0}
--Column A as a list then the first element of that list which is index 0
Thank you for replying me, I followed your approach and keep getting "Expression.SyntaxError: Invalid identifier" on . Did I do sth wrong?
[Table Column][Column A]
^^^^^^^^
Make sure you're entering the correct columns. Power Query is case-sensitive:
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
52 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |