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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors