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.
Hi there,
Need help with DAX for achieving the Actuals below (considering planned and execution data is present):
Thanks
Solved! Go to Solution.
Hi @Jayesh ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) Click "transform data" to enter the power query and add a index column.
(3) We can create a calculated column.
Actual =
var _a=CALCULATE(SUM('Table'[Planned]),FILTER('Table','Table'[Index]=1))
var _b=CALCULATE(SUM('Table'[Execution]),FILTER('Table','Table'[Index]<EARLIER('Table'[Index])+1))
return _a-_b
(4) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jayesh ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) Click "transform data" to enter the power query and add a index column.
(3) We can create a calculated column.
Actual =
var _a=CALCULATE(SUM('Table'[Planned]),FILTER('Table','Table'[Index]=1))
var _b=CALCULATE(SUM('Table'[Execution]),FILTER('Table','Table'[Index]<EARLIER('Table'[Index])+1))
return _a-_b
(4) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks it helps
Hi @Jayesh
Please refer to my answer in the linked discussion (it also includes PBIX to follow):
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Thanks for sharing the solution, but my specific requirement is a bit different,
First Value of actual column is a straight subraction from execution then after i am subtracting the previous value of actual with execution
User | Count |
---|---|
97 | |
73 | |
69 | |
43 | |
23 |