GeoCharts, how to only display the countries name and not the value? - charts

Similar to this post about showing countries names: GeoCharts how to show country names instead of codes
But with the added caveat of excluding the numerical value that also displays. The issue is I just want certain countries to display depending on the value but the value in itself is a meaningless token.

Related

Tableau set default value in the filter

I have a gender of a person and i want to create such filter
How can i set deafault "men" value in this filter?
When user select another value and then deselect value i need to
return default value in the filter
I've already tried to create such a calculated field, but it does not work with
MIN({FIXED: COUNTD([gender])}) <> MIN({EXCLUDE [gender]: COUNTD([gender])}) OR MIN([gender])="men"
There are several tutorials about creating a default value for filtering (and several different techniques), one of them is this one: Dynamic Parameters, Default Values and the Flexibility to Choose
For me, if you just have to put "men" as default (I mean, not a calculated value, like today's DateTime), you can just filter man before publishing your dashboard to Tableau Server/Tableau Online and every use that navigates your content will find this value selected.

QGIS: is there a way to specify labels for only some countries?

In QGIS,I want to display only the names of counties which have data of more than 1 (the data range is 1-18), and not display all country names on a world map.
I'm on a Mac.
I don't think 'priority' will work on its own, and it might need a string?
In the attributes, I have a column with no. projects (so 1-18 for <15 countries), and wondered if this could be part of the string. Something like 'if more than 1, label with country name'.

Is there a way to have number type parameters blank?

I'm creating a demographics report where users can choose what demographics they want to include on the report. One of the options is age range where the user can type in their own figures. Everything works except when the age range parameters are not used. The others can be blank as they are string types but the age range parameters are number types because I need to use them to do counting. Is there a way to use number type parameters but allow them to be blank if necessary?
I tried changing the type to string and then running a ToNumber formula to use the field for my needs but I get the same error. I also tried suppressing any fields that use number parameters but trying to say suppress is Not HasValue but that didn't work either.

Display Tableau label to show group breakdown

I grouped my countries as followed (I used create --> group):
Asia = HK, JP, SG & Other = all other countries
So I am working with the following dimensions:
"Region" is the group created above. "Country" is the list of countries (e.g. HK, JP, SG, VT, CA, US, etc). "Date" & "Quantity"
I displayed a line chart that show trend for these 2 groups, so basically, on the same graph, one line shows the trend for "Other" and the other shows the trend for "Asia". "Day" is on the column shelf and quantity is on the row shelf, and I put Region on the color shelf to obtain the 2 lines. I also bring "Country" on the Filter shelf since I want to be able to view individual countries.
In the labels, when "ALL" is selected for "Country", I am able to display "Other" and "Asia". What I want is the label to change to the actual country when I select an individual country. For instance, if I select HK, I will only see the HK line, which is fine, but the problem is that it is labelled as "Asia" instead of HK. How can I make this happen?
I tried to add "Country" to the Label mark, unfortunately, that breaks down the trend lines to show "Other" and then all the countries that fall under Asia. I really just want to have 2 lines (or just one it a single country from "Country" is selected).
I have been banging my head trying calculated fields and parameters and can't get this to work. Please help!
This may be a bit extreme, but I can't think of another way.
With your 'Region' group on color and label, Tableau has no way of knowing when it is appropriate to change label to 'Country.' A calculated field would be very difficult to create here.
What I would propose is two completely separate sheets that are switched upon a user's input. Here is some documentation on how to create a sheet selector.
The method would generally be to:
Create a string parameter. Inside the parameter creation window there is an option "Add from Field" which would allow you to import all of your "Country" names. You will need to add an "All" label on this screen as well.
Create two views. One which is the one you already have that will show "All" and have two lines. The other new sheet will be designed for only when a single selection from the parameter list is made. It will only show one line that is labeled with the parameter (Country) name. You can design it however you'd like since its a totally separate sheet.
Follow the instructions in the link given above. In the article, on the step labeled "Type the current view's name (like “Map”) in the text box, and click the Add Item button." you will want to type the parameter name "All" in your first sheet and then in the second sheet you will want to individually label each country. The parameter drop down will trigger one sheet or the other for display.
A major consideration here is how often any fields are added to [Country]. Keep in mind that the parameter list will not automatically be adjusted if the underlying data changes.
I hope this helps.

Dynamic parameters in Crystal report

I have a LINETYPE parameter with the following values:
INV_DEVICE
INV_SIM
TAX
OTHER_ITEMS
If the user chooses anything from the LINETYPE parameter anything that start with "INV_*", is it possible that another parameter field be populated dynamically?
For example, the user chooses INV_DEVICE. There would appear another parameter field called GOODSTYPE.
Values for GOODSTYPE are taken from the database. Example:
PAGER
GSMPHONE
SMARTPHONE
TABLET
But when the user chooses TAX or OTHER_ITEMS the user does not need to choose any value from GOODSTYPE, or the parameter field does not show at all.
The output of the report are those matching the criteria the user entered.
Note that for LINETYPE and GOODSTYPE, user can choose multiple values.
LINETYPE is a mandatory field, but GOODSTYPE will vary upon the values chosen by the user in LINETYPE
What you really want is call Cascading Parameters. The first selection leads to a refined list on the second selection which leads to another refined list, etc. Like Country -> State/Province -> City.
I don't use it but from what I gather, your selection needs to be stored in a table. To create a Cascading Parameter:
Create a new parameter
Under List of Values, select Dynamic
Select your value, description and Paramter
Set the option for Allow Multiple Values
repeat step 3-4 if you have more parameters.