Statistic Card - as a Helper

The new Statistic Card is awesome, but limited, I can only use the data configured in the card, in the card it selve. I’d like to use, for example, the Max value in a template/new sensor or in a new type of card.