Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
I have a table with Columns LoanID, Status, StatusID, LoanRemaining Balance, Accrual Date, Days Past Due which has records for every date. I want to have a summarized table having the max accrual date in each month and the year and its corresponding days past due and loan remaining balance for loans having status id as 100 and 1001
Below is where you can see the dataset and the result table,
https://drive.google.com/drive/folders/1kUJEzxtkH40lzd3h4FvOuysf9JPo8_FS?usp=sharing
The sql query used is,
select loan_id, loan_status, status_id,loan_remaining_balance, max(accrual_date) as maxdate, days_past_due from accrualtable
where
status_id in (100, 1001)
group by loan_id, year(accrual_date), month(accrual_date)
order by maxdate, status_id;
Please Help me write DAX query for it!
Thanks,
Dharani
Solved! Go to Solution.
All the answers on your result worksheet are wrong. Download my PBI solution file from here.
Hope this helps.
Thank You so much Sir
You are welcome.
Hi,
In the Dataset worksheet, the entry in the Days past due column in row 5 is -28 In the Result worksheet, then entry in the Days past due column in row 2 is -31. Why this discrepancy?
Sorry sir my mistake. I guess my query is wrong, the result worksheet in row 2 must have -28
All the answers on your result worksheet are wrong. Download my PBI solution file from here.
Hope this helps.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 45 | |
| 36 | |
| 28 | |
| 23 |
| User | Count |
|---|---|
| 135 | |
| 121 | |
| 58 | |
| 40 | |
| 32 |