Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone, I have Table 1 and Table2 like the picture.
I want create new table, using matrix table for showing transaction from the bank in Table1. Each invoice No. will match with that transaction.
There are two thing will alway happen:
First: the total Amount of Invoice No in Table 2 will alway be the same with Table1[Debit]. For example, if Table1[Date] 1/22/2024 have Debit is 30000, then the Invoice will be 661 and 662 because these two sum will be 30000.
Second: The Table1[Date] will alway after the Table2[Date]. Because the transaction from the bank will alway happen after the Date in Table2
Please help me!!!!!!
Solved! Go to Solution.
Hi @VictorV ,
I made simple samples and you can check the results below:
Total = CALCULATE(SUMX('Table (2)',[Amount]),FILTER('Table (2)',[Date]=EARLIER([Date])))
balance =
VAR _MAXNO = MAXX(FILTER(ALL('Table (2)'),'Table (2)'[Total] = MAX('Table'[Debit])),'Table (2)'[Invoice No])
return
IF(MAX('Table (2)'[Invoice No]) = _MAXNO,SUM('Table'[Debit]),BLANK())
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @VictorV ,
I made simple samples and you can check the results below:
Total = CALCULATE(SUMX('Table (2)',[Amount]),FILTER('Table (2)',[Date]=EARLIER([Date])))
balance =
VAR _MAXNO = MAXX(FILTER(ALL('Table (2)'),'Table (2)'[Total] = MAX('Table'[Debit])),'Table (2)'[Invoice No])
return
IF(MAX('Table (2)'[Invoice No]) = _MAXNO,SUM('Table'[Debit]),BLANK())
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
58 | |
38 | |
36 |
User | Count |
---|---|
83 | |
67 | |
62 | |
46 | |
45 |