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.
Hello,
I have a table with two main columns and a measure:
Rows: Vendor name
Columns: Transaction Date
Values: Accounting Balance
I need to create a matrix in Power BI with this data and the accounting balance added to the previous value.
As a case scenario I will use this example where the totals are calculated vertically (as usual):
This is what I really need:
A brief explanation of the previous table:
In other words I need to calculate the payments made by vendor for each month / column totals (that he owes in total). The last month (the current) will have the same debt as the total because it is cumulative.
Any suggestions? Thanks in advance
Hi @martinfernandez,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
Hi @martinfernandez,
What does the original data look like? Please refer to the demo in the attachment.
1. If you have a date table, you can use this one.
Measure 3 = CALCULATE ( SUM ( Table1[Value] ), FILTER ( ALL ( 'Calendar'[Date] ), 'Calendar'[Date] <= MAX ( 'Table1'[Date] ) ) )
2. If you don't have a date table, you can try this one.
Measure = CALCULATE ( SUM ( Table1[Value] ), FILTER ( ALL ( Table1 ), 'Table1'[Date] <= MAX ( 'Table1'[Date] ) && 'Table1'[Vendor] = MIN ( 'Table1'[Vendor] ) ) )
Best Regards,
Dale
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |