Filter from the secondary data source can't be applied to a worksheet in Tableau - filtering

I have a worksheet that connects to two CSVs - 'Customer Report' and 'Views'. Customer Report is the secondary data source and Views is the primary data source blended within the worksheet on "location" and "sub location" fields.
I have used an "Age" filter from the Customer Report in another worksheet that has Customer Report as the primary data source and I have applied it to all related data sources. However, I'm not being able to apply it to my current worksheet. Even when I select "Apply to selected worksheets" and search for the relevant worksheet name, it appears greyed out. Any idea how I can get it to apply?
Thank you in advance!

Related

How to repeat table in jasper report based on grouped data from SQL

This is the output from my SQL query
I am trying to create a report in Jasper Studio which will create a separate table for each city.
Right now, what I have created is something that looks like below. It shows all the data with the City listed as St. Louis. What features in Jasper will allow me to do as above?
Finally figured this out.
Create a group band for your report in Jasper. (Right click report Outline-> Create Group)
Next you have two options - create group from a report object or create group from expression. I used the first option and selected City from the list of group objects displayed. Click Next.
Selected the checkbox Add the group header and click finish.
The other change I did was - Previously my headers were under column header, I moved them under the new band group header. Now it works exactly like how I wanted.

Select worksheet using combo box and display the data in the listbox

I have Entry Form in excel VBA ( For example employee information First name , Last name , Job Title , Hiring date,..etc) and save this information in worksheet called Database.
What's the easiest way that I can add combobox and add another two new sheets (sheet1 name: Database 2020 and sheet2 name : Database 2019) and Add the new combobox to the Entry Form once I run the micro I can Select from the combobox Database 2020 or Database 2019 then it will display the information for the selected sheet in the listbox that I have in the Entry Form and I can edit it and delete from that sheet and save the information
Right now I have only one worksheet named Database when I run the micro will display what I have employee information in that sheet in the listbox and I can add new employee information or edit exist employee information then save it, for now I need to use two separate sheets instead of one worksheet.
Thank you,
Anyone can help ?

Query on Tableau Dashboard

I am a new to Tableau and having some issues with it.I am Using a parameter to filter month data across Sheets connected to different Data Sources.
I want to Filter Current Month Data Automatically when the dashboard starts.
Can anyone guide me on how to do it.
Thanks in Advance.
T
Introduced in version 10.3 is a feature called Latest date preset. The release notes say "Start with up-to-date data. Set filters to display latest date values automatically, as soon as your workbook opens." Create a filter that spans applies across the data sources and use this new setting. The setting is in the filter dialog.
See https://www.tableau.com/new-features/10.3#tab-analytics-2
The critical aspect of your question is that you are filtering multiple data sources using a parameter. Given that, the most straightforward approach is to define a boolean calculated field in each data source, called say Within_Date_Range.
Each of those calculated fields should compare the appropriate Date field in that data source to the selected parameter value and return true or false to indicate whether the current record should be included in the query. (Parameters are scoped to the workbook and visible from all data sources)
Place the [Within_Date_Range] field for data source X on the filter shelf for the worksheets that use that data source X. Check the true box of course.
Now when you change the parameter, all the worksheets filter accordingly.
Alternatively, you can abandon the use of a parameter. Define relationships between your data sources using the corresponding Date fields (under the data menu). Show a filter control for the date field for one of the worksheets and set the scope to "related data sources"
Hope this helps!
Create a calculated field Date_Filter as
lookup(min([Your_Date_Field]),0)
Drag this to 'Filter'; select 'relative date' option and choose last 1
month (because you wanted to show just the current month data by default).
Right click this filter and select "Apply to selected worksheet" and
choose sheets in which you want this filter to be applied on the
dashboard.Viola!
With this solution you can very well see current month's data by default and can go back to as many time periods you want.

How to hide key field in Tableau?

I'm using 2 data sources connected by 'product' field: one source contains category information, other - net sales data. Result is shown attached:
Example is shown in Excel but it's the same in Tableau.
The problem is that I don't need Product column and I just want to see a pivot table like in attached picture.
Is it possible in Tableau?
Recreate the subcategory so you can join on that. On your data source that has both, place product on rows then place subcategory. Copy that crosstab to excel. Use this WHEN THEN Builder found here: https://dl.dropboxusercontent.com/u/60455118/WHEN%20THEN%20builder.xlsx to quickly make the components of a CASE statement formula. Then join the data sources on subcategory. .

how to use main report data set as table's dataset?

I had generated a report using ireport Designer v5.1. For generating it i had used jrbeancollection data which is passed from java program .now i want to use this main data source as data set for ireport table.
could any one please help me to know how to do this.
thanking in advance...
Below steps help you to show JRBeanCollection data in the Jasper report.
Create the Java Bean data source using the report Data Source creation functionality which is the on top side of the iReport.
You can display the data coming from the Java Bean data source, in table format.
List item JR table
Normal table structure which is created by drag and drop from the fields.
JRTable -
Create subDataset from a Java Bean Data source you have created, It will return you the fields which you can use in the table.
From iReport palette window drag and drop the Table. It will open the window and ask you for the dataset. Provide the dataset you have created along with other necessary information.
Normal table on report -
Open main data source report query window, you will find multiple tabs
Select Java bean data source tab, provide the class name or data source you have created above. You can find below the window field name and data type.
The same field information you can find in the report inspector window below the Fields label in tree format.
Drag and drop which field you want to display in the report in the detail band or other custom band.