This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hey there
I have a table set below for Date, Company, In.
May I know how can I create 2 columns that:
- calculates cumulative balances of "In" but only for individual company A, B & C
- calculates cumulative balances of "In" but for all companies
| Date | Company | In | Cumu Bal by Company | Cumu Bal by Combined |
| 2-Jan | A | 1 | 1 | 8 |
| 3-Jan | A | 1 | 2 | 11 |
| 2-Jan | B | 1 | 1 | 8 |
| 3-Jan | B | 2 | 3 | 11 |
| 4-Jan | B | 3 | 6 | 14 |
| 2-Jan | C | 2 | 2 | 8 |
| 2-Jan | C | 4 | 6 | 8 |
Solved! Go to Solution.
@Anonymous
you need to build this model and then add these measures:
Cumu Bal by Combined
=IF (
MIN ( 'Calendar'[Date] ) <= CALCULATE (
MAX ( Data[Date] ),
ALL ( 'Calendar' )
),
CALCULATE (
SUM ( Data[In] ),
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
),
ALL ( Companies )
)
)Cumu Bal by Company
=IF (
MIN ( 'Calendar'[Date] ) <= CALCULATE (
MAX ( Data[Date] ),
ALL ( 'Calendar' )
),
CALCULATE (
SUM ( Data[In] ),
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
)
)
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
@Anonymous
you need to build this model and then add these measures:
Cumu Bal by Combined
=IF (
MIN ( 'Calendar'[Date] ) <= CALCULATE (
MAX ( Data[Date] ),
ALL ( 'Calendar' )
),
CALCULATE (
SUM ( Data[In] ),
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
),
ALL ( Companies )
)
)Cumu Bal by Company
=IF (
MIN ( 'Calendar'[Date] ) <= CALCULATE (
MAX ( Data[Date] ),
ALL ( 'Calendar' )
),
CALCULATE (
SUM ( Data[In] ),
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
)
)
)
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Check out the April 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 |
|---|---|
| 36 | |
| 28 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 33 | |
| 26 | |
| 24 |