Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 Nolgath
		
			Nolgath
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
I have this issue for a while, i need to make a heatmap using a map graphic where i have points in each country where I have the "Sales Factor" for that particular country.
I have filters : Country, Make, Model, Fuel Type, Gearbox. I need to be able to select any combination of filters and get the result on the map correctly.
This is my expression for the calculation of "Sales Factor" (This is (online cars/sold cars)*30):
=floor(Count(distinct
{<Date={">=$(=date('2023-01-01'))<=$(=date(today()))"},duplicateStatus={0}>}
[_id])
/
Count(
distinct
{<
Date={">=$(=date('2023-01-01'))<=$(=date(today()))"},
country.sold={'$(=concat(distinct country,''','''))'},
[make.sold]={'$(=concat(distinct make,''','''))'},
[model.sold]={'$(=concat(distinct model,''','''))'},
[fuelType.sold]={'$(=concat(distinct fuelType,''','''))'},
[gearbox.sold]={'$(=concat(distinct gearbox,''','''))'}
>}
[_id.sold])
*30)
My script is:
My map shows:
When it not with any filters on is:
