Energy meter - import/export

Is it possible to set an energy meter to import or export or whatever other terminology one wants to use? I power appliances and devices with solar power via an inverter when available and utility power when solar is not available. As my solar is essentially free, i wish to separate it from the utility power reading. Energy dashboard should split types of power and not just add them all up. In other words, two separate power meters, one from solar and other from utility power, and in energy dashboard would not simply add to one another, but maybe all solar readings would subtract from total. Is this possible?