var countryLevel = data['ConsumptionCountry'];
                            var quarterLevel = data['ConsumptionQuarter'];
                            
							// Trends

                            var finalTrendData = [];
                            var finalTrendDataX = [];

                            var Q1 = quarterLevel["Q1'25"];
                            var Q2 = quarterLevel["Q2'25"];
                            
                            var baseData = [Q1.ever[0].bCount, Q2.ever[0].bCount];
                            var everData = [Q1.ever[0].percentage, Q2.ever[0].percentage];
                            var consumed1YData = [Q1.consumed1Y[0].percentage, Q2.consumed1Y[0].percentage];
                            var consumed3MData = [Q1.consumed3M[0].percentage, Q2.consumed3M[0].percentage];
                            var consumed7DData = [Q1.consumed7D[0].percentage, Q2.consumed7D[0].percentage];

                            var aHTML = ``;
                            baseData.forEach(function(e,i,a){
                                aHTML += `<span>n-${e}</span>`;
                            });
                            $(".foot").empty().append(aHTML);

                            finalTrendData.push(everData);
                            finalTrendData.push(consumed1YData);
                            finalTrendData.push(consumed3MData);
                            finalTrendData.push(consumed7DData);

                            formTable2(quarterLabel,tab1label,finalTrendData,"cm_1");

                            // COUNTRY Level

                            debugger;

                            var everDataCountry = [];
                            var consumed1YDataCountry = [];
                            var consumed3MDataCountry = [];
                            var consumed7DDataCountry = [];

                            const countryData = {};

                            countryLabel4.forEach(country => {
                                if (countryLevel[country]) {
                                    countryData[country] = countryLevel[country];
                                }
                            });

                            console.log(countryData);

                            for (let country in countryData) {
                                everDataCountry.push(countryData[country].ever[0].percentage);
                                consumed1YDataCountry.push(countryData[country].consumed1Y[0].percentage);
                                consumed3MDataCountry.push(countryData[country].consumed3M[0].percentage);
                                consumed7DDataCountry.push(countryData[country].consumed7D[0].percentage);
                            }

                            const bCounts = {};
                            const countries = Object.keys(countryData);

                            countries.forEach((country, index) => {
                                bCounts[index] = countryLevel[country].ever[0].bCount;
                            });

                            const flatArray = Object.values(bCounts);
                            console.log(flatArray);


                            $("#cm_1").find(".country-col").find(".base-note").each(function(i,e){
                                $(this).empty().append(`n-${flatArray[i]}`);
                            });
                            $("#cm_1").find(".country-col").find(".full").each(function(i,e){
                                $(this).empty().append(everDataCountry[i]+"%");
                            })
                            $("#cm_1").find(".country-col").find(".mid").each(function(i,e){
                                $(this).empty().append(consumed1YDataCountry[i]+"%");
                            })
                            $("#cm_1").find(".country-col").find(".lighter").each(function(i,e){
                                $(this).empty().append(consumed3MDataCountry[i]+"%");
                            })
                            $("#cm_1").find(".country-col").find(".lightest").each(function(i,e){
                                $(this).empty().append(consumed7DDataCountry[i]+"%");
                            })