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
Vinay07
Helper II
Helper II

Difference between the Months different count when Interest rate changes from Previous to Current.

Hi All,

 

I am trying to calculate the month's different count when the Interest rate changes from Previous interest to Current interest changes. Please help

Here Interest rate = INIT_DPOS_INT_PCT

Below is the screenshot for reference

 

Vinay07_0-1711438621210.png

Calculations need to be worked on the DAX column dynamically. Below is an example of Previous interest to Current interest month's difference count. 

Vinay07_0-1711439469871.png

 

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Vinay07 
Not sure if I correctly understand the requirement but you may try

Difference Count =
CALCULATE ( DISTINCTCOUNT ( 'Table'[INIT_DPOS_INT_PCT] ), ALLSELECTED () )
Gabry
Super User
Super User

Hello,

not sure to have understood. Did you just need to calculate the difference between 2 dates?

There's a DAX formula.

 

Difference Count = DATEDIFF (last_inst_captil, last_update, month)

 

If it not works in a measure you can just add SELECTEDVALUE

 

like this:

 

Difference Count = DATEDIFF (SELECTEDVALUE(last_inst_captil),SELECTEDVALUE( last_update), month)



Please let me know if this solves you problem, if so please mark as accepted solution

bye

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.