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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
bonjourposte
Helper V
Helper V

DAX Measure for differentiating between two timeframes

We have one table (LOANHIST) that we use to "create" two different timeframes.  We're always comparing this month to last month.  If the status of the loan changed between the two months (and a bunch of other filters are applied), then we know that that loan was a renewal or an extension.

 

In the table, there is Accounting Date, Maturity Date, Current Amortization Months, and Loan Term.  We need to use those columns twice- once for the Current time frame, and once for the previous month's time frame.  ("Accounting Date" drives the measure, and it is always the last day of every month.)

 

This is what our columns look like: 

bonjourposte_0-1724556135355.png

 

 

This is the code my boss used to extract the info from SQL.  How do I translate this into DAX?  I have no idea where to begin.  Am I creating virtual tables?  Am I creating two variables for every column that we need?

 

Am I using DATEADD or PARALLELPERIOD?  

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with, explain the question and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.