How do I rearrange my query's output to create a funnel report in Tableau - charts

My Sql query's output looks like this. How do I change it to give me a funnel report in tableau irrespective of the date field?

Related

how do i display these calculated fields in tableau?

I created the calculated fields in tableau as seen on the excel table. how do i display them in tableau? Each of these fields have their own filters. Please help.
I need tableau to display each of the calculated fields as shown in excelas a table in dashboard. The total Cp, Cp 51+ and the rest, but the issue is that each of these calculated fields have their own filters.

Dynamic Computation in Tableau based on User Input

I have a requirement to dynamically perform computations in Tableau based on User Input.
For this purpose my basic query looks something like this:
Select some_dimension,sum(some_measure)/count(some_measure) as
some_measure_average
from table
where date = User_Input
group by some_dimension
The User_Input value should be passed based on what the user has selected and the corresponding computation should be performed based on the above query logic.Here , the Custom SQL should hit the connected Database that contains the data and display the computed data on Tableau.
Here the average is calculated based on the division of sum and count and should only be computed for the date value that has been selected.
The Custom SQL Query option in Tableau is not able to fulfill this requirement.
Not sure if we are doing it correctly.
You can create a date parameter in Tableau and pass that as your User_Input. Type your query and click "Insert Parameter". Set the parameter Data type to Date and provide a current value. Insert it where needed in your query.

Crosstab with additional column

My report needs a normal cross-tab section, but with an additional pre-computed column (It's the average of all the non-zero weeks of activity, so a normal cross-tab average will not work). This is a column that is supplied in my dataset.
How can I get it to look like this?
Have you considered adding a SQL Command to your report in the Database Expert?
If you perform the pre-calculations in SQL and pass the results in as a Command table, you can use the calculations like regular table fields. These can be used in a Crosstab like normal fields.

linking fields in crystal reports links tab

Please suggest me to get this requirement.
I have a report where I need show data wise sites.Suppose if I click on particular date it should show respected sites.
The date field is coming from different query and sites info is coming from diff query.
Now I need to pass this date field as a parameter to 2nd query.But due to some limitation(nested sub reports) I am not using sub report approach.
I am using drill down concept.
So I have taken both queries in one report only and I written a sub query in 2nd query to get 1st queries date .
Now I am displaying the date parameter in 2nd query as a column.
Now I have date columns in both the queries.
Now what is my doubt is whether I need to link both the queries date fields in links tab(As I need to show sites coming from 2nd query by clicking date field coming from 1st query)
Please suggest .

Is it possible to create a filter that filters out distinct values in a dataset?

I'm trying to create a report that will contain two pie charts. I get the data for the report from SQL.
Currently, I created a dataset for the first chart which holds records with the following fields: Import ID, Date, Status. This dataset contains duplicate records.
For the second chart, I need the same data I have in the first dataset, only without duplications and aggregated differently.
I realize that I can create another dataset that will get the distinct values from the SQL database, but I was wondering if there was a way to use the built-in filtering functionality to filter out the dataset I already have to return only distinct values (based on ID field).
Looking at the options in the following filtering dialog, I see no obvious way to do this:
If ID is not unique and your 1st query looks like this:
select ImportID, Date, Status
from YourTableSource
WHERE YourConditions
Then you probably should use for your 2nd query form like this:
select DISTINCT ImportID, Status
from YourTableSource
WHERE YourConditions
If changing the query is not an option ,then you may create the Group in ssrs with invisible DETAIL pane and place the ID and Status fiels in int Group pane