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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Define the crossing of the curves with DAX

Hey guys,

 

Below is the problem i am trying to solve since two days now.

Here is my dataset :

PowerBI.png

 

My final goal is to find the date when the two curves "Entrées" and "Sorties" will cross.

For that, i calculated the column :

  • EcEntrées, which is the gap of "Entrées" between a date and the previous date.
  • EcSorties, which is the gap of "Sorties" between a date and the previous date.
  • AvEcEntrées, whch is the average of the gap of "EcEntrées", calcultaed with the column : 
    • AvEcEntrees = AVERAGEX(FILTER(ALL(Projection_light);([Date]>=EARLIER([Date])-1) && [Date] <= EARLIER([Date])-0);[EcEntrées])
  • AvEcSorties, which is the same for the "Sorties".

 

Now, I would like to find the value of X for the equation : LastDate(Entrées) + AvEcEntrées x X = LastDate(Sorties) + AvEcSorties x X

I dont know at all how to solve it with dax ... Is it a measure ? Is it a column ?

 

Ty for your help !

 

 

 

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.