Tableau text table zero records - tableau-desktop

I am using the text table option to visualize a KPI on Tableau Dashboard (one figure visualization).
I have a filter on , and occasionally the filter will filter out all underlying record.
Is there an option to have the text tablev visualise an alternative text or "none" instead of just becoming just blank?

Yes, if the field you're using is a dimension, you can simply right-click it on the value or on the fields window (to the left) and select "Edit aliases...", changing the 'null' alias to whatever you want.
If the field is a measure (numeric value), you will have to create a calculated field with a structure like:
IF [Field] = NULL
THEN "Field is empty"
ELSE STR([Field])
END

Once you're filtering out data, no data can be visualized and that's why you get the blank spot instead of your table/chart.
One way to bypass this problem could be building a dashboard with a tiled text object with "No data" and then you can put above it your worksheet in floating mode.
Try to see something really similar here.

Related

Tableau - How to switch columns dynamically by changing filter value?

Hello Tableau experts,
In the attached tableau file link, I am trying to switch between the columns "TOTAL ELIGIBLES" and "SPECIAL ELIGIBLE" by changing the value from the filter "TYPE". The logic goes as:
IF TYPE = "D" (only) then show SPECIAL ELIGIBLE
ELSE (in all other cases including multiple selection of TYPE, show TOTAL ELIGIBLES.
I have tried to accomplish the same by making a new Calculated field by the name of "ELGIBLE CALC" (pardon the spelling) but it does not seem to work with multiple selection of values from filter "TYPE".
Any help is appreciated.
Thanks.

Count the number of missing required fields in Google Sheets

I have a Google Spreadsheet, used like a form, with multiple "Skills", all of which have 2 fields within them, a "required field" (used as a flag for if entry in that field is necessary) and a "Current field" (where the user provides input). I am trying to create a "Inputs Left" field which counts the number of "Required fields" which do not currently have an entry in the "Current field" across all of the fields (seen below).
To do this, I am currently using this formula (C12:P12 is the range with the values in it).
=COUNT(FILTER(C12:P12,ISODD(COLUMN(C12:P12)-COLUMN(C12)),C12:P12>0)) - COUNT(FILTER(C12:P12,ISEVEN(COLUMN(C12:P12)-COLUMN(C12)),C12:P12>=0))
The issue I am running into is when a "Skill" is not required, but a value is entered. With this formula, it counts this towards the number of inputs left, however I only want it to count towards this if it is a required field, while still allowing the user to input non-required skills (see below). In this situation, I would like to have it still show that 2 inputs a left (specifically skill 3 and 4 still need input)
I believe I could do this using a OnEdit() trigger with google scripts, but I would like to have it done using a formula if possible. I also believe I could do this with a series of normal If statements, but the actual document has many more "skills", and I believe an endless list of if statements would be hard to debug in the future. Any help is appreciated!
Ended up using a COUNTIFS statement:
=COUNTIFS(FILTER(C12:P12,ISODD(COLUMN(C12:P12)-COLUMN(C12))),">0",FILTER(C12:P12,ISEVEN(COLUMN(C12:P12)-COLUMN(C12))),"")
Because I imagine it's confusing why there is a ISEVEN(COLUMN(C12:P12)-COLUMN(C12)) (and ISODD), the reason is because I needed to do multiple of the "Inputs Left" Fields, and the "Required" field would switch between being even and odd, meaning I would need to edit the formula a lot. Using the COLUMN(C12:P12)-COLUMN(C12) normalized this, so the "Current" was always even and the "Required" was always odd.

RDLC Reports: how to hide text, depending on whether all fields in dataset value are NULL?

I am creating RDLC Reports (this one is a subreport actually), that hides a specific Text-Box depending on data available/missing.
Specifically, I want to hide a Text Box, using an "Expression", when all values of a specific DataSet are null. Currently I do only check the first value like so:
=(IsNothing(First(Fields!EventDescription.Value, "MyDataSet")))
This works, regarding only the first item in the DataSet, or when it's empty. How can I check for "All". Is there an "All" operator?
I now have
=((Sum(IIF(IsNothing(Fields!EventDescription.Value),0,1), "MyDataSet") ) = 0)
which looks a little complicated, but works. It
checks whether the given Field is NULL
if not so, provides the integer value 1
sums all those values up
hides the text box, when the sum is zero (all fields have been null)
Essentially this converts an aggregate comparison into a sum.

Trying to set color point by column value in CartoDB

This is my first time using CartoDB. My dataset is a simulation of the behaviour of users arround the campus. My rows have latitude, longitude and the class column depending of the cluster in which the user is.
I saw an option to visualize the animation of the behaviour (cartodb transforms the data into a time lapse), but I'm trying to see the points colored by the class value. In the platform, there is an option to do that, but when I choose the "animation" mode then I can't choose any of the columns to set the color.
I show you an image:
However, if I choose the "By points" mode, I can display the points color by the class column value.
Is there anyone who has had the same problem? Do you have any recommendation?
I think the problem is on the column type, you need your column to be a string to be offered as a value, so maybe you want add a column to your SELECT statement on the DATA tab to reclassify your clusters. If you rename then you can also show them on the legend can reflect a better name for your clusters:
select *,
case cluster
when 1 then 'Cluster 1'
when 2 then 'Cluster 2'
else 'unknown'
end as cluster_named
from my_table
Something around that should help to convert cluster numeric field into a string one, then you'll see it offered to animate by that value.
Disclaimer: I work at CARTO

Multiple field values to subreport error

I have a parent report that feeds one of the field values into a subreport. But the problem is that there this field value can include multiple records. For simplicity, assume that this field value is called color, where possible values might be orange, red, and green. I need to pass all of these value to the subreport, not just one. I have tried passing the values this way into the Color parameter of the subreport:
=Fields!Color.Value
But this doesn't work and gives me an error. I have also tried:
=join(Fields!Color.Value,",")
This also gives me an error on the subreport
I have also tried both of the above as an expression in a textbox in the parent report and I get #Error displayed on the parent report. I was able to successfully get just the first value to appear by using a similar expression and the First function. But I am not able to get all of the values to display in this textbox on the parent report? how can I do this or at least pass all of the values to this subreport?
The easy solution is if Color is already a parameter - I would pass this expression in the subreport:
=Parameters!Color.Value
If Color is not a parameter, I would add a column to the driving dataset in the parent report using a SELECT ... FOR XML to concatenate the relevant Color values together. Then you can pass that field to the subreport.

Resources