Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sjehanzeb
Resolver I
Resolver I

Combining calendar table with calculated amount from another table in addition to customer id

This is in continuation of a Previous post.  My objective is to create a table with month wise running balance of individual customer. My transactional data is simply a list of transactions (plus/minus).

I created a calendar table with individual months so that balance still shows even if there is no transactions. my issue is that I am unable to add customer id to the summarize table. 

Calender = my own calender table that is linkedin to transactional table's date column
SF = Transactional Table
SF[Line Amt] = Transactions (plus / minus)

SF[ID] = Individual customer ID (cannot insert it here)

 

 

SUMMARIZE(Calender, Calender[Year Month], Calender[Year Month Number],  "Amount", CALCULATE(sum(SF[Line Amt]), FILTER(ALL(SF), RELATED(Calender[Year Month Number]) <= EARLIER(Calender[Year Month Number]))))

 

1 ACCEPTED SOLUTION
sjehanzeb
Resolver I
Resolver I

So, I resolved it. Combine two tables with all values

var calendertable = SUMMARIZE(Calender, Calender[Year Month])
var SFtable= SUMMARIZE(SF, SF[ID])
return
CROSSJOIN(calendertable, SFtable)

View solution in original post

1 REPLY 1
sjehanzeb
Resolver I
Resolver I

So, I resolved it. Combine two tables with all values

var calendertable = SUMMARIZE(Calender, Calender[Year Month])
var SFtable= SUMMARIZE(SF, SF[ID])
return
CROSSJOIN(calendertable, SFtable)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.