Display the distance in Km of an activity over a period

Hello everyone,
I want to display data on my widget which is the total number of km traveled since a specific date.

Is it possible ? If so please help me because I'm stuck, I only find to display the distance km of the last week done.