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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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