Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors