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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Rinn
Frequent Visitor

Calculate slopes between two points

Hi, 

 

I am a beginner to DAX and I am trying to calculate the slopes for each two points of a curve :

(Index = order of X for each User)

UsersIndexXYSLOPE (calculated)
A104 
A20,52338
A314034
A41,539-2
A5222-34
B109 
B20,52634
B315456
B41,542-24
B5222-40
C1013 
C20,5113200
C31163100
C41,575-176
C5228-94

 

Can you help me pls ?

 

Best Regards.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Here's my version (as a measure - could be a column too, I guess)

 

lbendlin_1-1684282891714.png

 

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Here's my version (as a measure - could be a column too, I guess)

 

lbendlin_1-1684282891714.png

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.