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
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
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.