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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I0m new to Power Bi.
Simple question: I have a table with 3 colmuns:
- TransactionId
- TransactionAmount
- TransactionMonth
I want to add a 4th column, TotalAmountofThisMonth, that sums up in each row the total $ amount of Transactions of each month.
So as an example, Januray sold $100+$200+$300 = $600. Hence, $600 should show up for column TotalAmountofThisMonth, in each of the 3 rows that have "January" as its TransactionMonth.
What's the DAX expression for this????
TransactionId | TransactionAmount | TransactionMonth |
1 | $100 | January |
2 | $200 | January |
3 | $300 | January |
4 | $400 | February |
5 | $500 | February |
6 | $600 | March |
7 | $700 | March |
8 | $800 | March |
Solved! Go to Solution.
Hello @AlexGurovich
If you want to just show the monthly total, you can create simple measure that sums up the values:
TotalAmountofThisMonth =
SUM ( Table[TransactionAmount] )
If you want this to be a physical column in your data model not just a column in a table or a matrix visual, you can try this:
TotalAmountofThisMonth =
CALCULATE (
SUM ( Table[TransactionAmount] ),
ALLEXCEPT ( Table, Table[TransactionMonth] )
)
Hello @AlexGurovich
If you want to just show the monthly total, you can create simple measure that sums up the values:
TotalAmountofThisMonth =
SUM ( Table[TransactionAmount] )
If you want this to be a physical column in your data model not just a column in a table or a matrix visual, you can try this:
TotalAmountofThisMonth =
CALCULATE (
SUM ( Table[TransactionAmount] ),
ALLEXCEPT ( Table, Table[TransactionMonth] )
)
If you import this table into Power BI and create a Matrix, it will do the totaling automatically.
To calculate the total for each month we write a measure
Help when you know. Ask when you don't!
Excellent, thanks for the help and support. Kudos
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!