The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
58 | |
56 | |
55 | |
50 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |