grouped
2 TopicsNot-quite-semi-additive measures
I have a source table that has a snapshot of loan data for every day of the month (whether it changes or not, and no, I don't like this structure, but I'm constrained to use it for now). The sample I'm using is shown below (the actual table has many more columns, and some of them do actually change day by day, unlike what you see here). Some of the columns in the table are "opening/closing balance" columns, like Principal Balance. This is a semi-additive measure, where I can add up the column across multiple loans, but I cannot add it over time - I must take the last snapshot. Principal Balance = CALCULATE(sum('Loan Master'[principal_balance]),LASTNONBLANK('Loan Master'[report_dt], 'Loan Master'[report_dt])) However, the Principal Paid and Interest Paid measures are only semi-additive *within the month*, but fully additive across months. I need to subtotal the column for the last day of *each month* within the filter context. If I just use the same measure expression as the Principal Balance above, it works within the month. Principal Paid = CALCULATE(sum('Loan Master'[principal_payment]),LASTNONBLANK('Loan Master'[report_dt],'Loan Master'[report_dt])) But the totals over all months don't work (I didn't expect them to, as above): In this case, I'd like the Total line to show $395.60 for Principal Paid and $3.50 for Interest Paid. I can't seem to figure out how to use GROUPBY, SUMMARIZECOLUMNS, ADDCOLUMNS, SUMX or some combination to get it to work. Anyone care to point me in the right direction? Here is a sample PBIX. MikeSolved1.4KViews0likes2CommentsCROSSJOIN by group
hi all, Hopefully you can help me. I can't figure it out despite googling a lot. I don't think it's very tricky. Basically, what I want to achieve is a kind of grouped crossjoin between two identical tables. Table A Stops Stations A - B - C A A - B - C B A - B - C C X - Y X X - Y Y Table B Stops Stations A - B - C A A - B - C B A - B - C C X - Y X X - Y Y The result should be (column naming can be different): Stops Stations Stops Stations A - B - C A A - B - C A A - B - C A A - B - C B A - B - C A A - B - C C A - B - C B A - B - C A A - B - C B A - B - C B A - B - C B A - B - C C A - B - C C A - B - C A A - B - C C A - B - C B A - B - C C A - B - C V X - Y X X - Y X X - Y X X - Y Y X - Y Y X - Y X X - Y Y X - Y Y I need to do that in order to report on certain routes, let's say customer satisfaction between point A and B oder A and C. I hope you can help me 🙂 Best regards, TrojiSolved3.5KViews0likes6Comments