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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
barlevitzky
Helper II
Helper II

When the two lines will meet?

Hi all,

I have data looks like this

Date   Cost  Revenue

1.4.18 1000$ 200$

2.4.18 1100$ 300$

and so on.

15.7.18 0$ 800$

 

the line chart looks like this:

Capture.JPG

 

I want to calculate in how many days the integrals of the cost will meet the integral of the revenue. 

How can I do that?

Thanks

1 REPLY 1
Anonymous
Not applicable

 

You could add a table for Date or Calendar. And create a column in you data like Days from Inception where inception is the first date in you table. Just use the DATEDIFF function. Then create a calculated column which is the difference of Cost and Revenue. 

Then create a measure like:

*Measure = Calculate(MAX(DaysFromInception), Filter(Data Table, CostAndRevenueDiff = 0))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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