Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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])
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |