The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I want to do a table, that have a sum of a colunm in the table. For Example:
I have this table:
Code Total
1 10
2 20
3 30
4 40
5 50
And i try to create a row that have a sum of Total Colunm:
Code Total
1 10
2 20
3 30
4 40
5 50
1+2+3+4+5 150
This is possible to do in DAX or in a power Query?
Thanks a lot
Solved! Go to Solution.
@Anonymous
Actually it was like this before I edit it after having a 2nd read. Please use
NewTable =
UNION ( Table1, { ( "Total", SUM ( Table[Total] ) ) } )
Hi @Anonymous
With DAX you can create a new calculated table
NewTable =
UNION ( Table1, { ( SUM ( Table[Code] ), SUM ( Table[Total] ) ) } )
If you have multiple coulmns in the original table then it needs some changes.
Hi, @tamerj1
I have a question, if instead of Sum the "Code" column, I wanted to put the name "Total Code". In the code changes " SUM ( Table[Code] )" for what?
For Example:
Code Total
1 10
2 20
3 30
4 40
5 50
Total Code 150
Do you can help me?
Thanks a lot.
@Anonymous
Actually it was like this before I edit it after having a 2nd read. Please use
NewTable =
UNION ( Table1, { ( "Total", SUM ( Table[Total] ) ) } )
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |