Forum Discussion
Need help about dax to find diff
- Anonymous4 years ago
Hi Oran1234,
I created some data:
Here are the steps you can follow:
1. Add Column – Index Column – From 1.
2. Create calculated column.
diff between above and below = var _above=CALCULATE(SUM('Table'[production technology]),FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index]))) var _blew=CALCULATE(SUM('Table'[production technology]),FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])-1)) return IF(_blew=BLANK(),BLANK(), _above-_blew)3. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Oran1234,
I created some data:
Here are the steps you can follow:
1. Add Column – Index Column – From 1.
2. Create calculated column.
diff between above and below =
var _above=CALCULATE(SUM('Table'[production technology]),FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])))
var _blew=CALCULATE(SUM('Table'[production technology]),FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])-1))
return
IF(_blew=BLANK(),BLANK(),
_above-_blew)
3. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This way is work for the detial that do not in Group.
As I try the result will be below.
But when it group it doesn`t work.
I`m trying to find the way to fix this. If you have any idea, please let me know.