Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Dax to Compute values based on filtering from two columns

Hi,

 

I have a table with columns loan account id, loan id, loan status id,  loan status desc, loan funding date, loan remaining balance, product name, days past due, accrual date, x, current remaining balance.

 

I have to summarize the data based on two columns loan funding date and loan accrual date. 

If the user selects a date say - 09/30/2022 (on loan funding date column)

 

The data should be filtered such that  for each loan id, there should be max accrual date in each month and the year and its corresponding days past due and loan remaining balance for loans having loan status id as 100 with in the (09/30) date. There should be a record for each loan id even if there is no accrual date.

 

ps: the data should be filtered on loan funding date column and the max accrual dates should also be within the filtered date on the loan funding date column

 

on this fitered data set, we have to calculate a measure which is the sum of loan remaining balance for each loan id.

 

Here is the link for the pbix file,

https://drive.google.com/drive/folders/1o_Vj-nl6ilxrx3WJzo-s6oP9J-w3rcYR?usp=sharing

 

Approximately there should be 181 loans for the given data set.

 

Please help me resolve this problem.

 

@Ashish_Mathur 

 

 

Thanks,

Dharani

8 REPLIES 8
Anonymous
Not applicable

@amitchandak @Greg_Deckler Can you please help me with this?

Anonymous
Not applicable

Hi,

In an MS Excel file, share a simple dataset and show the expected result very clearly.  As much as you can, show the process of arriving at the end result using Pivot Table/formulas/comments.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Sir,

I have added an sample data set along with the explanations here

 

https://drive.google.com/drive/folders/1o_Vj-nl6ilxrx3WJzo-s6oP9J-w3rcYR?usp=sharing

 

File Name: Data_Bank.xlxs

 

Thanks for the help!!

Hi,

Thank you for sharing those files.  This looks like a very time consuming problem to solve.  I will not be able to devote so much time.  I am sure someone else will be able to help you. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thank you sir

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

 

I am not able to open the file using this link. Can you send me a OneDrive Link?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.