Forum Discussion
angelikakolacz
Helper I
4 years agoSearch with multiple criteria
Hello, I have a table with more than milion rows with data from different customers. I’m looking for a dax formule that gives me the following result (see column output): ACCOUNT NUMBER INVO...
Jihwan_Kim
Super User
4 years agoHi,
Based on what I see in the sample, I tried to write DAX formula like below in order to create a calculated column.
Please check the below picture and the attached pbix file.
Output CC =
VAR _result =
SUMMARIZE (
FILTER (
Data,
Data[ACCOUNT NUMBER] = EARLIER ( Data[ACCOUNT NUMBER] )
&& Data[PERIODE] = EARLIER ( Data[PERIODE] )
&& Data[INVOICE AMOUNT]
= -1 * EARLIER ( Data[INVOICE AMOUNT] )
),
Data[INVOICE NUMBER]
)
RETURN
_result + 0