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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.