==== Brand Analytics P1 test results ====

==== BA-10 distribution/overview ====
{"ok":true,"data":{"active_store_count":396,"eligible_store_count":411,"numeric_distribution_percent":96.3504,"new_store_count":51,"lost_store_count":30,"retained_store_count":345,"sales_per_active_store":5193192709.709596,"eligible_store_method":"market_active_store_in_scope_v1","trend":[{"bucket":"2026-06-01","active_store_count":351,"eligible_store_count":364,"numeric_distribution_percent":96.4286,"sales_per_active_store":3772103331.1538463},{"bucket":"2026-07-01","active_store_count":340,"eligible_store_count":352,"numeric_distribution_percent":96.5909,"sales_per_active_store":2154400128.852941}]},"meta":{"request_id":"938a9fb3-db89-40fc-8efa-59018f42a584","generated_at":"2026-08-26T14:30:20+03:30","data_updated_at":"2026-07-31T23:59:59+03:30","currency":"IRR","timezone":"Asia/Tehran","applied_filters":{"brand_id":6514,"period":{"from":"2026-06-01","to":"2026-07-31","granularity":"month"},"comparison":{"type":"previous_period","from":"2026-04-01","to":"2026-05-31"},"filters":{"product_group_ids":[],"category_ids":[],"product_ids":[],"store_ids":[],"provinces":[],"cities":[],"regions":[],"store_grades":[],"channels":[]}},"warnings":[]}}

==== BA-11 distribution/stores ====
{"ok":true,"data":{"items":[{"store_id":1579,"store_name":"نمونه سلامی","province":"تهران","city":"تهران","region":"3","grade":"A+","current_sales_amount":57942423760,"comparison_sales_amount":43936628700,"growth_percent":31.88,"active_product_count":281,"sales_per_active_product":206200796.29893237,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":15,"store_name":"خوشقدم","province":"تهران","city":"تهران","region":"3","grade":"A+","current_sales_amount":50427653740,"comparison_sales_amount":34393218040,"growth_percent":46.62,"active_product_count":267,"sales_per_active_product":188867617.00374532,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1137,"store_name":"حسینی یزدی","province":"تهران","city":"تهران","region":"4","grade":"A+","current_sales_amount":44448222543,"comparison_sales_amount":30531972030,"growth_percent":45.58,"active_product_count":266,"sales_per_active_product":167098580.98872182,"last_sale_date":"2026-07-26","coverage_status":"retained"},{"store_id":1831,"store_name":"فروشگاه 1831","province":"تهران","city":"تهران","region":"2","grade":"A+","current_sales_amount":29884392526,"comparison_sales_amount":17605373624,"growth_percent":69.75,"active_product_count":286,"sales_per_active_product":104490882.95804195,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1207,"store_name":"میلاد گلشهر","province":"تهران","city":"تهران","region":"4","grade":"A+","current_sales_amount":27417915560,"comparison_sales_amount":23304385380,"growth_percent":17.65,"active_product_count":294,"sales_per_active_product":93258216.1904762,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1578,"store_name":"باباعلی","province":"تهران","city":"تهران","region":"4","grade":"A","current_sales_amount":25153212770,"comparison_sales_amount":33985298800,"growth_percent":-25.99,"active_product_count":268,"sales_per_active_product":93855271.52985075,"last_sale_date":"2026-07-04","coverage_status":"retained"},{"store_id":1557,"store_name":"پازل","province":"تهران","city":"تهران","region":"3","grade":"B","current_sales_amount":23971346200,"comparison_sales_amount":18405451940,"growth_percent":30.24,"active_product_count":211,"sales_per_active_product":113608275.82938388,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1597,"store_name":"فروشگاه 1597","province":"تهران","city":"تهران","region":"1","grade":"A+","current_sales_amount":22349487800,"comparison_sales_amount":34695989000,"growth_percent":-35.58,"active_product_count":232,"sales_per_active_product":96333999.13793103,"last_sale_date":"2026-07-04","coverage_status":"retained"},{"store_id":1667,"store_name":"فروشگاه 1667","province":null,"city":null,"region":null,"grade":null,"current_sales_amount":22232604265,"comparison_sales_amount":16471343126,"growth_percent":34.98,"active_product_count":227,"sales_per_active_product":97940987.95154186,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1659,"store_name":"فروشگاه 1659","province":"تهران","city":"تهران","region":"3","grade":"A","current_sales_amount":22003844820,"comparison_sales_amount":16694197950,"growth_percent":31.81,"active_product_count":231,"sales_per_active_product":95254739.48051947,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":2045,"store_name":"فروشگاه 2045","province":"تهران","city":"تهران","region":"1","grade":"A+","current_sales_amount":21553798100,"comparison_sales_amount":15531415380,"growth_percent":38.78,"active_product_count":206,"sales_per_active_product":104630087.86407767,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1936,"store_name":"فروشگاه 1936","province":null,"city":null,"region":null,"grade":null,"current_sales_amount":21079774000,"comparison_sales_amount":14796364000,"growth_percent":42.47,"active_product_count":286,"sales_per_active_product":73705503.4965035,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1763,"store_name":"فروشگاه 1763","province":"تهران","city":"تهران","region":"3","grade":"A+","current_sales_amount":20735809200,"comparison_sales_amount":13773588750,"growth_percent":50.55,"active_product_count":199,"sales_per_active_product":104200046.23115578,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":2381,"store_name":"فروشگاه 2381","province":null,"city":null,"region":null,"grade":null,"current_sales_amount":20682822180,"comparison_sales_amount":0,"growth_percent":null,"active_product_count":180,"sales_per_active_product":114904567.66666667,"last_sale_date":"2026-07-31","coverage_status":"new"},{"store_id":1783,"store_name":"فروشگاه 1783","province":"تهران","city":"تهران","region":"1","grade":"A+","current_sales_amount":20622881242,"comparison_sales_amount":29356388350,"growth_percent":-29.75,"active_product_count":271,"sales_per_active_product":76099192.77490775,"last_sale_date":"2026-07-03","coverage_status":"retained"},{"store_id":1417,"store_name":"سهند فردوس تبریز","province":"تهران","city":"تهران","region":"4","grade":"A+","current_sales_amount":19074891530,"comparison_sales_amount":18146306400,"growth_percent":5.12,"active_product_count":273,"sales_per_active_product":69871397.54578754,"last_sale_date":"2026-06-28","coverage_status":"retained"},{"store_id":2006,"store_name":"فروشگاه 2006","province":"تهران","city":"تهران","region":"3","grade":"A+","current_sales_amount":19039585000,"comparison_sales_amount":17612124000,"growth_percent":8.1,"active_product_count":260,"sales_per_active_product":73229173.07692307,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1495,"store_name":"هلیا","province":"تهران","city":"تهران","region":"2","grade":"A+","current_sales_amount":18840339800,"comparison_sales_amount":15101028317,"growth_percent":24.76,"active_product_count":288,"sales_per_active_product":65417846.527777776,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1530,"store_name":"ستاره شهر بوکان","province":null,"city":null,"region":null,"grade":null,"current_sales_amount":18731860013,"comparison_sales_amount":14401480519,"growth_percent":30.07,"active_product_count":230,"sales_per_active_product":81442869.62173913,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1814,"store_name":"فروشگاه 1814","province":"تهران","city":"تهران","region":"1","grade":"A+","current_sales_amount":18554172340,"comparison_sales_amount":21116978670,"growth_percent":-12.14,"active_product_count":238,"sales_per_active_product":77958707.31092437,"last_sale_date":"2026-07-13","coverage_status":"retained"},{"store_id":1517,"store_name":"راضی تکاب","province":"تهران","city":"تهران","region":"7","grade":"A+","current_sales_amount":18234696000,"comparison_sales_amount":11770019400,"growth_percent":54.92,"active_product_count":228,"sales_per_active_product":79976736.84210527,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1138,"store_name":"انی نسیم شهر","province":"تهران","city":"تهران","region":"4","grade":"A+","current_sales_amount":18166761800,"comparison_sales_amount":23998657000,"growth_percent":-24.3,"active_product_count":201,"sales_per_active_product":90381899.50248756,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1237,"store_name":"سیب تبریز","province":"تهران","city":"تهران","region":"2","grade":"A+","current_sales_amount":17852007620,"comparison_sales_amount":24007664400,"growth_percent":-25.64,"active_product_count":237,"sales_per_active_product":75324926.66666667,"last_sale_date":"2026-07-04","coverage_status":"retained"},{"store_id":1205,"store_name":"مرکزی عطیمیه","province":null,"city":null,"region":null,"grade":null,"current_sales_amount":17363221800,"comparison_sales_amount":9406601000,"growth_percent":84.59,"active_product_count":266,"sales_per_active_product":65275269.924812034,"last_sale_date":"2026-07-31","coverage_status":"retained"},{"store_id":1123,"store_name":"سلیمی راد","province":null,"city":null,"region":null,"grade":null,"current_sales_amount":17184406340,"comparison_sales_amount":10350019940,"growth_percent":66.03,"active_product_count":251,"sales_per_active_product":68463770.27888446,"last_sale_date":"2026-07-31","coverage_status":"retained"}],"page":1,"page_size":25,"total_items":426,"total_pages":18},"meta":{"request_id":"c68daaf9-ba83-4b9b-8699-f546318d106d","generated_at":"2026-08-26T14:30:22+03:30","data_updated_at":"2026-07-31T23:59:59+03:30","currency":"IRR","timezone":"Asia/Tehran","applied_filters":{"brand_id":6514,"period":{"from":"2026-06-01","to":"2026-07-31","granularity":"month"},"comparison":{"type":"previous_period","from":"2026-04-01","to":"2026-05-31"},"filters":{"product_group_ids":[],"category_ids":[],"product_ids":[],"store_ids":[],"provinces":[],"cities":[],"regions":[],"store_grades":[],"channels":[]}},"warnings":[]}}

==== BA-12 geography/performance ====
{"ok":true,"data":{"geo_level":"city","items":[{"geo_id":"city:نامشخص|نامشخص","geo_name":"نامشخص","parent_geo_id":"province:نامشخص","map_key":"city:نامشخص|نامشخص","sales_amount":526423228091,"sales_quantity":349425.802,"market_share_percent":6.8276,"growth_percent":27.41,"active_store_count":115,"sales_per_active_store":4577593287.747826,"market_size":7710176261391,"opportunity_score":25.3522,"opportunity_reason":"moderate_opportunity"},{"geo_id":"city:تهران|اسلامشهر","geo_name":"اسلامشهر","parent_geo_id":"province:تهران","map_key":"city:تهران|اسلامشهر","sales_amount":7161251795,"sales_quantity":9249,"market_share_percent":3.9222,"growth_percent":36.63,"active_store_count":15,"sales_per_active_store":477416786.3333333,"market_size":182582907899,"opportunity_score":0.8922,"opportunity_reason":"limited_market_size"},{"geo_id":"city:اذربایجان شرقی|تبریز","geo_name":"تبریز","parent_geo_id":"province:اذربایجان شرقی","map_key":"city:اذربایجان شرقی|تبریز","sales_amount":13042086630,"sales_quantity":9403.34,"market_share_percent":9.1256,"growth_percent":-18.66,"active_store_count":3,"sales_per_active_store":4347362210,"market_size":142917374945,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:اردبیل|سرعین","geo_name":"سرعین","parent_geo_id":"province:اردبیل","map_key":"city:اردبیل|سرعین","sales_amount":3975350033,"sales_quantity":2976,"market_share_percent":10.0808,"growth_percent":-26,"active_store_count":1,"sales_per_active_store":3975350033,"market_size":39434922972,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:البرز|کرج","geo_name":"کرج","parent_geo_id":"province:البرز","map_key":"city:البرز|کرج","sales_amount":19780756560,"sales_quantity":14843,"market_share_percent":5.138,"growth_percent":-29.69,"active_store_count":6,"sales_per_active_store":3296792760,"market_size":384992277494,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|آبعلی","geo_name":"آبعلی","parent_geo_id":"province:تهران","map_key":"city:تهران|آبعلی","sales_amount":1385720002,"sales_quantity":1298,"market_share_percent":5.8781,"growth_percent":0,"active_store_count":1,"sales_per_active_store":1385720002,"market_size":23574190167,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|احمد آباد","geo_name":"احمد آباد","parent_geo_id":"province:تهران","map_key":"city:تهران|احمد آباد","sales_amount":1160810422,"sales_quantity":715,"market_share_percent":5.9144,"growth_percent":-49.07,"active_store_count":1,"sales_per_active_store":1160810422,"market_size":19626794903,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|تهران","geo_name":"تهران","parent_geo_id":"province:تهران","map_key":"city:تهران|تهران","sales_amount":1435253009073,"sales_quantity":920639.4970000001,"market_share_percent":7.2998,"growth_percent":-20.19,"active_store_count":232,"sales_per_active_store":6186435383.935345,"market_size":19661616536448,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|دماوند","geo_name":"دماوند","parent_geo_id":"province:تهران","map_key":"city:تهران|دماوند","sales_amount":2912362000,"sales_quantity":2413,"market_share_percent":8.7063,"growth_percent":-56.61,"active_store_count":2,"sales_per_active_store":1456181000,"market_size":33451278058,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|رودهن","geo_name":"رودهن","parent_geo_id":"province:تهران","map_key":"city:تهران|رودهن","sales_amount":2943342000,"sales_quantity":1599.006,"market_share_percent":8.6802,"growth_percent":-26.13,"active_store_count":1,"sales_per_active_store":2943342000,"market_size":33908692450,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|شهر قدس","geo_name":"شهر قدس","parent_geo_id":"province:تهران","map_key":"city:تهران|شهر قدس","sales_amount":1680478000,"sales_quantity":1081,"market_share_percent":3.1443,"growth_percent":-7.64,"active_store_count":3,"sales_per_active_store":560159333.3333334,"market_size":53445761778,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|لواسان","geo_name":"لواسان","parent_geo_id":"province:تهران","map_key":"city:تهران|لواسان","sales_amount":2416435000,"sales_quantity":1927,"market_share_percent":6.7851,"growth_percent":-36.55,"active_store_count":1,"sales_per_active_store":2416435000,"market_size":35613817385,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|نسیم شهر","geo_name":"نسیم شهر","parent_geo_id":"province:تهران","map_key":"city:تهران|نسیم شهر","sales_amount":3129611814,"sales_quantity":2005,"market_share_percent":4.4962,"growth_percent":-9.31,"active_store_count":3,"sales_per_active_store":1043203938,"market_size":69605377263,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|واوان","geo_name":"واوان","parent_geo_id":"province:تهران","map_key":"city:تهران|واوان","sales_amount":7446000,"sales_quantity":5,"market_share_percent":1.561,"growth_percent":-90.89,"active_store_count":1,"sales_per_active_store":7446000,"market_size":477012664,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|ورامین","geo_name":"ورامین","parent_geo_id":"province:تهران","map_key":"city:تهران|ورامین","sales_amount":0,"sales_quantity":0,"market_share_percent":0,"growth_percent":null,"active_store_count":0,"sales_per_active_store":null,"market_size":828660000,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:تهران|پردیس","geo_name":"پردیس","parent_geo_id":"province:تهران","map_key":"city:تهران|پردیس","sales_amount":26737173768,"sales_quantity":18992,"market_share_percent":7.2618,"growth_percent":-20.7,"active_store_count":5,"sales_per_active_store":5347434753.6,"market_size":368189102154,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:خراسان|مشهد","geo_name":"مشهد","parent_geo_id":"province:خراسان","map_key":"city:خراسان|مشهد","sales_amount":9880971859,"sales_quantity":6079.651,"market_share_percent":6.471,"growth_percent":-43.02,"active_store_count":7,"sales_per_active_store":1411567408.4285715,"market_size":152695544286,"opportunity_score":0,"opportunity_reason":"market_not_growing"},{"geo_id":"city:قم|قم","geo_name":"قم","parent_geo_id":"province:قم","map_key":"city:قم|قم","sales_amount":0,"sales_quantity":0,"market_share_percent":0,"growth_percent":null,"active_store_count":0,"sales_per_active_store":null,"market_size":7200000,"opportunity_score":0,"opportunity_reason":"market_not_growing"}],"opportunity_method":"normalized_market_size_x_inverse_share_x_positive_market_growth_v1"},"meta":{"request_id":"98f638c7-a600-4144-8d36-4006f7f040ec","generated_at":"2026-08-26T14:30:27+03:30","data_updated_at":"2026-07-31T23:59:59+03:30","currency":"IRR","timezone":"Asia/Tehran","applied_filters":{"brand_id":6514,"period":{"from":"2026-06-01","to":"2026-07-31","granularity":"month"},"comparison":{"type":"previous_period","from":"2026-04-01","to":"2026-05-31"},"filters":{"product_group_ids":[],"category_ids":[],"product_ids":[],"store_ids":[],"provinces":[],"cities":[],"regions":[],"store_grades":[],"channels":[]}},"warnings":[]}}

==== BA-13 channels/trend ====
{"ok":true,"data":{"series":[{"bucket":"2026-06-01","channel":"online","sales_amount":354117772250,"sales_quantity":220346,"channel_mix_percent":26.7459,"growth_percent":44.43,"average_selling_price":1607098.709529558,"active_product_count":495,"active_store_count":192},{"bucket":"2026-06-01","channel":"offline","sales_amount":969890496985,"sales_quantity":659731.648,"channel_mix_percent":73.2541,"growth_percent":8.12,"average_selling_price":1470128.8014986964,"active_product_count":532,"active_store_count":350},{"bucket":"2026-07-01","channel":"online","sales_amount":245389308880,"sales_quantity":143377,"channel_mix_percent":33.5004,"growth_percent":-14.35,"average_selling_price":1711497.0244878887,"active_product_count":467,"active_store_count":192},{"bucket":"2026-07-01","channel":"offline","sales_amount":487106734930,"sales_quantity":317898.648,"channel_mix_percent":66.4996,"growth_percent":-46.6,"average_selling_price":1532270.5459571506,"active_product_count":498,"active_store_count":338}]},"meta":{"request_id":"d46028c0-ff93-4759-8943-cfc42bc4b85b","generated_at":"2026-08-26T14:30:31+03:30","data_updated_at":"2026-07-31T23:59:59+03:30","currency":"IRR","timezone":"Asia/Tehran","applied_filters":{"brand_id":6514,"period":{"from":"2026-06-01","to":"2026-07-31","granularity":"month"},"comparison":{"type":"previous_period","from":"2026-04-01","to":"2026-05-31"},"filters":{"product_group_ids":[],"category_ids":[],"product_ids":[],"store_ids":[],"provinces":[],"cities":[],"regions":[],"store_grades":[],"channels":[]}},"warnings":[]}}

==== BA-15 insights ====
{"ok":true,"data":{"insights":[{"id":"material_sales_or_quantity_drop","severity":"critical","priority":100,"title_key":"brand.material_drop.title","message_key":"brand.material_drop.message","facts":{"sales_growth_percent":-12.15,"quantity_growth_percent":-21.7},"drilldown":{"component":"trend","filters":{}}},{"id":"price_up_quantity_down","severity":"warning","priority":80,"title_key":"brand.price_up_quantity_down.title","message_key":"brand.price_up_quantity_down.message","facts":{"average_price_growth_percent":12.2,"quantity_growth_percent":-21.7},"drilldown":{"component":"products","filters":{}}},{"id":"new_product_in_top10_19441","severity":"info","priority":60,"title_key":"brand.new_product_top10.title","message_key":"brand.new_product_top10.message","facts":{"product_id":19441,"product_name":"ماست همزده کم چرب پروبیوتیک سون کاله 1.8 کیلوگرمی","current_sales_amount":40061287697,"comparison_rank":11},"drilldown":{"component":"products_table","filters":{"product_ids":[19441]}}}],"method":"rule_based_v1"},"meta":{"request_id":"df2b5e92-0206-4a79-87a5-e003f477e56b","generated_at":"2026-08-26T14:30:59+03:30","data_updated_at":"2026-07-31T23:59:59+03:30","currency":"IRR","timezone":"Asia/Tehran","applied_filters":{"brand_id":6514,"period":{"from":"2026-06-01","to":"2026-07-31","granularity":"month"},"comparison":{"type":"previous_period","from":"2026-04-01","to":"2026-05-31"},"filters":{"product_group_ids":[],"category_ids":[],"product_ids":[],"store_ids":[],"provinces":[],"cities":[],"regions":[],"store_grades":[],"channels":[]}},"warnings":[]}}
