- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Adding additional rows to a calculated table
Hi,
I have created a calculated table using select Selectcolumns. I want to add addtional rows to this for each month between the start and end date, with the monthly payment populatated for that row. However I also need an addtional row for the final payment.
Is there a way to do this in DAX. I can't use power query as this table doesn't show.
Any help greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @PamWren
For the requirement: Add addtional rows to this for each month between the start and end date, with the monthly payment populatated for that row.
You can refer to the following solution.
Sample data
Create a new calculated table.
Table 2 =
VAR a =
SUMMARIZE (
ADDCOLUMNS (
CALENDAR ( MIN ( 'Table'[Startdate] ), MAX ( 'Table'[EndDate] ) ),
"Month", DATE ( YEAR ( [Date] ), MONTH ( [Date] ), 1 )
),
[Month]
)
VAR b =
SUMMARIZE ( 'Table', [Startdate], 'Table'[EndDate], [Monthly Payment] )
RETURN
FILTER (
CROSSJOIN ( a, b ),
EOMONTH ( [Month], 0 ) >= EOMONTH ( [Startdate], 0 )
&& EOMONTH ( [Month], 0 ) <= EOMONTH ( [EndDate], 0 )
)
Output
For the second requirement: need an addtional row for the final payment
You can consider to use a matrix visual or table visual it can sum the totalpayment at final.
e.g
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @PamWren
For the requirement: Add addtional rows to this for each month between the start and end date, with the monthly payment populatated for that row.
You can refer to the following solution.
Sample data
Create a new calculated table.
Table 2 =
VAR a =
SUMMARIZE (
ADDCOLUMNS (
CALENDAR ( MIN ( 'Table'[Startdate] ), MAX ( 'Table'[EndDate] ) ),
"Month", DATE ( YEAR ( [Date] ), MONTH ( [Date] ), 1 )
),
[Month]
)
VAR b =
SUMMARIZE ( 'Table', [Startdate], 'Table'[EndDate], [Monthly Payment] )
RETURN
FILTER (
CROSSJOIN ( a, b ),
EOMONTH ( [Month], 0 ) >= EOMONTH ( [Startdate], 0 )
&& EOMONTH ( [Month], 0 ) <= EOMONTH ( [EndDate], 0 )
)
Output
For the second requirement: need an addtional row for the final payment
You can consider to use a matrix visual or table visual it can sum the totalpayment at final.
e.g
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-28-2024 01:51 AM | |||
04-22-2024 12:18 PM | |||
01-02-2024 08:44 PM | |||
04-15-2024 09:17 AM | |||
04-18-2024 12:55 PM |
User | Count |
---|---|
123 | |
104 | |
84 | |
49 | |
46 |