Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I need help to create DAX code to subtract previous row in SMU column. - refer table below.
For example 682-0=0, 895-682=213,910-895=15,950-910=40,1682-950=732.
Any assistance would be greatly appreciated thank you.
Solved! Go to Solution.
@Anonymous , Try a new column like
Diff =[SMU] - maxx(filter(Table, [machine_no] =earlier([Machine_no]) && [SMU] < earlier([SMU])),[SMU])
@Anonymous , Try a new column like
Diff =[SMU] - maxx(filter(Table, [machine_no] =earlier([Machine_no]) && [SMU] < earlier([SMU])),[SMU])
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
20 | |
18 | |
17 | |
16 |
User | Count |
---|---|
34 | |
21 | |
19 | |
18 | |
11 |