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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

Converting Excel formula into DAX

Hi guys,

how can I translate the following formula in DAX?
I am still a beginner and I can not do it.
Can someone help me?


" =WENNFEHLER(INDEX(H:H;AGGREGAT(15;6;ZEILE($E$2:$E$82)/(LINKS($E$2:$E$82;3)="MXX");ZEILE(A1))-1);"") "


I am german and have written the formula logically also in german. I hope you can help me anyway.



I want to search for all workstations that start with "MXX..." in a column and always output the book date (in another column) of the preceding workstation.
MXX workstations are not all named the same but the string "MXX" is always the same.
MXX workstations can appear more than once in the column, but even if they are mentioned twice, they must always be considered individually.
The preceding work center is also always different in most cases.
I have marked the example lines in color.


Greetings, Rob

Super User
Super User

Hi @Rob12 

I wish if I speak German. 
how do you want to disply this result? Or you just want to create a new calculated table? I can ses that you have selected the date before the one that includes MXX. Any criteria for that? Can you provide the same sample data as copy/paste?  Thank you

The result should then be an extra column in the Power BI report and compared with the following.
Delivery date, statistical delivery date, date of invoice posting, date of goods receipt.
But these four dates are already in another query.
I can't get all the dates from one query because SAP and the interface don't allow it.

I will then link the dates to another query via column "D".

Is this somehow understandable?

Greetings, Rob

Hi @tamerj1,

it is about outputting the posting date of the work center which is before the "MXX..." work center.
See column "J".

"MXX" is a substring of the workstation which is always the same. However, the previous work center is not always the same. The date of the previous workstation is to be output, however, because this date is to be compared afterwards.
At the end, two dates are compared in order to trace a date fidelity.


you can find the table via the following link:


I hope its working 🙂

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors