How to create Cal field with Avg by state, country's

Hi,
Im new to quicksight, can you someone help me on how to create Avg cal field by state, country?
also cal field with filter condition

Hi @SantoshB
did you checked out

BR

This help but how to add filter to it? I want avg only for certain states not for all

Could you just set a filter for the visual?