Thank you, Samuel.
Moving then to page four, we look at our top line development. And as Thomas just presented, we saw 4% organic growth in the quarter. And I will now break this down somewhat.
If you remember, we talked last time about how we in the last year shifted sales from Q1 to Q2.
This related to the implementation of the new ERP system in Benelux, which led to delayed invoicing. This effect corresponds to around six percentage points in growth headwind in Q2. As we have said, we have fully exited our B2C business this quarter, and that drove roughly 2% decline in total sales. And that explains most of the negative impact coming from the decline in the SMB segment.
On the opposite, we saw strong underlying growth in LCP, mainly related to the public sector and driven by two factors: one, the continued upgrade in the wake of the Windows 11 shift; and two, some custom orders that were brought forward to mitigate expected price increases or more limited availability related to the global component shortage.
All in all, this explains the 4% organic growth in the quarter.
We now move to page five to look more closely at the LCP segment, and sales in LCP were 4.1 billion in the quarter, or 5% higher than last year.
The organic growth was 10%. So we continue to see a large negative forex impact from the strengthened SEK in the quarter. This growth was then on top of a strong Q last year as explained, and the growth was mainly driven by the demand in the public sector and related mainly to continued PC upgrades and customer orders brought forward. From a geographic perspective, we saw strong growth in Sweden, Norway and Belgium. We also saw positive development in our life cycle services where strong offerings have contributed to a new contract with Sykehuspartner in Norway and the Swedish municipality Region Kalmar. I said before, we can see large volatility in sales between quarters in LCP. The gross margin decreased compared to the previous year, but did improve a little bit versus the previous quarter.
The growing public sector business contributed to a negative customer mix effect, with a large share of public customers that normally have lower average margins. In addition, the continued price pressure in the Netherlands was a key driver for lower margins. The increase in take-back had a positive impact on both margin and EBITDA. I also saw some positive development in our private label business versus last year.
We also saw continued improvement in our cost structure, mainly thanks to the restructuring programs, and this had a positive effect on the bottom line. And overall, this led to a segment result of 105 million SEK versus 99 million SEK last year, and also improvement versus Q1 result.
The segment margin ended at 2.5%, in line with last year. Then we move to the overview of the SMB segment on page six, where sales landed at 1.3 billion, or 14% below last year.
Also here we saw a negative forex effect, and excluding this, the decline was 11%. We see some signs of stabilization, but customers remain cautious due to the ongoing economic uncertainty. And we in the quarter exited the B2C business in all our markets, which explains more than half of the decline for the SMB segment. Excluding this effect, the organic sales decline was just above 4%.
As explained earlier, this is a strategic move to better focus on our core business, but we always expected some sales headwind coming from this.
Looking at the product mix, we saw that the share of software and services sales increased to 13.3% versus 11.6% last year, which was more an effect of declining overall sales than an uptick in software and services. We saw continued decline in our non-standard services as in previous quarters. The gross margin was stable versus previous year.
We saw positive improvement in our base hardware business in both Nordics and Benelux, thanks to continued price discipline. But this was offset by lower margins on services, driven by the lower volumes of non-standard services that incur fixed costs. We have implemented cost saving actions to mitigate these lower margins that will have effect in Q3. The improved cost base from previous cost saving programs partially protected the segment result, but could not offset the lower volumes and the lower margins in non-standard services, and the segment result landed at 31 million SEK versus 46 million last year. This corresponds to a segment margin of 2.3% versus last year at 3%.
Moving on to page seven, you have an overview of the FTE development over time. We have constantly worked with our operational efficiency and optimizing our resources bit by bit. And the last year in Q2, we did a major reorganization with the focus to improve our go-to-market capabilities, but also to cut costs to match our current market situation. And we removed over 200 roles.
Since then, we have continued to reduce our workforce.
And as you can see in Q2, we have reduced our total workforce with 226 FTEs or 10% versus the last quarter last year.
If we prolong the period and look over two years, we have taken out more than 300 FTEs or a total of 14% of the total FTEs. Looking ahead, we have, as we have said, implemented additional cost reductions in our non-standard services to offset the declining sales, which were executed at the end of Q2.
And we have also initiated further reductions with the aim of saving 80 million SEK yearly. Its full effect is from Q4. So our cost optimization journey continues in line with our strategic focus.
On page eight, we looked at our leverage development, and leverage landed at 2.7 times, compared to 5.7 times last year, and 3.1 in Q1. So, you've seen a continuous improvement driven both by improved results and an improved cash position, as well as a positive forex effect. In addition, we also apply an updated definition of net debt, as described in the previous report, which drives circa 0.2x positive effect versus last year.
Overall, we are, of course, very happy to see this improvement in leverage after a period of higher levels, and that we are now in line with our target range to be between 2 to 3 times.
Moving then to cash flow and CapEx on page nine, we see that the cash flow for the period was plus 172 million versus 89 million last year. So good improvement. Also, on top of the improvement we saw in the first quarter. Looking at the details, we see that the cash flow from operating activities before the change in capital was flat versus last year, and the cash flow from change in capital was positive 169 million, despite an increase in inventory. We will look more at inventory at the net working capital on the next slide.
But in total, the operating cash flow was plus 258 million in the quarter.
Cash flow from financing activities is mainly repayment of leasing debt and at a similar level as previous quarters. Looking at Capex, we see that the total investment was 92 million, of which 39 affected the cash flow. This is mainly linked to IT development investment and slightly lower than last year. Moving to page nine and looking at the net working capital development, we see that net working capital landed at -46 million.
This is an improvement compared to 60 million last year and also an improvement compared to the previous quarter's 139 million. The accounts receivables declined, supported by active actions to settle. And this was the main driver of the improvement in net working capital. Inventory increased versus the previous quarter as expected.
Partly due to that, the previous quarter was quite low due to timing effects, but also as a result of the shortage in memory components, putting pressure on inventory levels to secure delivery. But compared to last year, the inventory levels were actually declining.
We do expect inventory levels to vary in the coming quarters, depending on opportunities to drive sales and margins, as well as the need to secure deliveries in the current market environment with the impacts from component shortages.
As said before, we always have some timing effects between individual quarters, but the long-term target for net working capital remains to be around -100 million SEK.
With that, I will hand back to Samuel.