earlierfunction
3 TopicsStart from second row in column
Hi, I need to calculate theta angle in Power BI. Like in Excel: First row needs to be zero and the rest rows goes: 5163 needs to by dynamic based on data so i choose to get MAX value from added Index row in Power Query So first row in power BI needs to be 0 and the rest needs to be based on previous value I got 3 problems because: 1) I dont know how to set first value to 0 when I try to add new column 2) I cant use the function Earlier because in the first row it tries to get data from non existing row 3) Can you actually start function to work from second row ?1.4KViews0likes1CommentDAX help check for duplicates
Hi, thanks in advance for any help, we have the following requirements: I've tried a few different methods to pull this together but all hit a memory issue, any suggestions on the best approach/script? To identify duplicate clients based on email address: 1. For clients creating a new case in September, using email address how many have a different case same month 2. For clients creating a new case in September, using email address how many have a different case previous month(s) Fields: CaseSurrogateKey, Email, InteractionDate, FirstSessionYN Check if the email address exists previously but with a different case Example: Bob flagged as a duplicate client (based on email) with a new case same month Ted flagged as a duplicate client (based on email) with a new case different month(s) - as has a case in Jul and Aug already528Views0likes1CommentRe: Previous Row Value for First Line
Hi, I need help with the following. Currently, the first line of my output for 'New Column' is not the result I wanted. First line should be 'Current Balance' (-335.00) - 'Amount' (-235.00). How do I add this in my current script? Current Script: New Column = VAR PreviousRow = TOPN ( 1, FILTER ( Table, Table[Date ] < EARLIER ( Table[Date ] ) ), [Date ], ASC) VAR PreviousValue = MINX ( PreviousRow, Table[ Amount] ) RETURN Table[ Amount] + PreviousValue Current Output: Customer No Type Date Amount Current Balance New Column BI111 2300000008 Customer Payment 4/2/2019 -235.00 -335.00 -235.00 BI111 1200000019 SD-Billing Document 4/6/2019 251.00 -351.00 BI111 1200000030 SD-Billing Document 4/12/2019 203.00 -554.00 BI111 1200000051 SD-Billing Document 4/20/2019 93.00 -647.00 BI111 2300000040 Customer Payment 4/24/2019 -279.00 -368.00 BI111 2300000041 Customer Payment 4/24/2019 -504.00 136.00 BI111 1200000076 SD-Billing Document 4/26/2019 76.00 60.00 BI111 2300000087 Customer Credit 4/30/2019 -10.00 70.00 BI111 2300000088 Customer Credit 4/30/2019 -17.00 87.00 Desired Output: Customer No Type Date Amount Current Balance New Column BI111 2300000008 Customer Payment 4/2/2019 -235.00 -335.00 -100.00 BI111 1200000019 SD-Billing Document 4/6/2019 251.00 -351.00 BI111 1200000030 SD-Billing Document 4/12/2019 203.00 -554.00 BI111 1200000051 SD-Billing Document 4/20/2019 93.00 -647.00 BI111 2300000040 Customer Payment 4/24/2019 -279.00 -368.00 BI111 2300000041 Customer Payment 4/24/2019 -504.00 136.00 BI111 1200000076 SD-Billing Document 4/26/2019 76.00 60.00 BI111 2300000087 Customer Credit 4/30/2019 -10.00 70.00 BI111 2300000088 Customer Credit 4/30/2019 -17.00 87.00Solved665Views0likes1Comment