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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
cillepersille
Frequent Visitor

DAX to calculate capacity before and after current line in table

Hi,

I am creating a report to see capacity before and after a train station. I only have the capacity on the train station, so I need to get the information from the last train station and the station after the current stop, at different hours of the day AND different years. The dataset is quite large, but what I need to do is find a formula that gives me the information from the last train station. 
So if I want to see the capacity before and after train station B, I would need to get capacity from A and C for different train-lines. 

Is there an equivalent of SUMIFS in DAX that can be used for this purpose?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

DAX has no concept of "previous" or "next". It is your responsibility to provide a suitable index field in your data.  You can then use that index for the  formulas.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

DAX has no concept of "previous" or "next". It is your responsibility to provide a suitable index field in your data.  You can then use that index for the  formulas.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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