Skip to main content

#Number0 utenti parlano di questo argomento

Hi,  I'm new to Tableau. Thank you in advance.

 

In my Order Data there are multiple rows for Order based on delivery location codes, for each location code quantity can be different. That in this data order has minimum one or more rows due to delivery locations and quantity.

 

I need count of orders which has multiple rows.

 

In Screenshot I did this in Excel added rows count.

How to calculate count of orders with multiple delivery locations. 

5 risposte
  1. 13 mag 2021, 15:53

    @Sunil Pawar​ ​ 

    You can create an LOD:

    # Lines per Order:

    {FIXED [Order]:COUNT([Location ID])}

    Then you can sum the number or orders with lines>1

    #Number of Orders>1:

    IF [# Lines per Order]>1 THEN 1 END

    Take into account that in order to dimension filters affect fixed calculations these must be added to context. To do this, right clic on the filter in the filter shelf and select add to context.

     

    @Sunil Pawar​ ​ You can create an LOD:# Lines per Order:{FIXED [Order]:COUNT([Location ID])}Then you can sum the number or orders with lines>1#Number of Orders>1:IF [# Lines per Order]>1 THEN 1 ENDTakAttached you will find a workbook, with an example. 

     

    If this post assists in resolving the question, please "Upvote" it or "Select as Best" if it resolves the question. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego

0/9000

Hello! My waffle chart gives me this error message as I added 2 more files to Tableau. I already made a primary key in the waffle excel file (Nation). However, it still gives me an error.

I'm not sure what should I do. I think I set the connection right. I'm wondering if someone can help please :(

Data Blending Issue. The waffle chart does not work as I added more dataeeo connectionone to oneone to manywaffle chart connection

8 risposte
  1. 6 mag 2022, 15:21

    Here's the error you're getting.

     

    Here's the error you're getting. I didn't realize this until now, but it appears you cannot use blending when one of your data sources uses the new(ish) relationship model. 

    I didn't realize this until now, but it appears you cannot use blending when one of your data sources uses the new(ish) relationship model. Instead of using relationships, double-click into your table to get to the "physical layer" then set up physical joins instead of relationships.

     

    image 

    That should eliminate the errors.

     

    For more on the relationship model and how it differs from the physical model, see Tableau's New Data Model

0/9000

Hello,

 

I have imported one excel file to Tableau which has 3 tables. one of the tables is Owners table. I want to count the number of owners in each state from the owner's table. But, for some states tableau calculates it incorrectly. For example, I have 3 owners in WA state but Tableau only shows 1.

I even tried with #number of records and it still gives the same results.

 

Any help is appreciated.

 

Tableau Counts the records of table incorrectly

14 risposte
  1. 24 feb 2020, 17:28

    thanks for sharing the data

    this is the way the data sets are connected

     

    thanks for sharing the datathis is the way the data sets are connected and with the inner joins only the vehicles from a state that are also rented will be in the result set in your chartin the WA exa

    and with the inner joins only the vehicles from a state that are also rented will be in the result set in your chart

    in the WA example

    there are 3 vehicles in the state

    pastedImage_1.png

     

    but only 970 was rented

     

    pastedImage_2.png

     

    one way to count all the vehicles is to left join the data on the vehicle/owners

    pastedImage_3.png

     

    and it will count the vehicles by stated

    pastedImage_4.png

     

    and also let you get this connection to rentals

     

    pastedImage_5.png

     

    Jim

     

    If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution.  Thank you.

0/9000

I have a list of dates/times and the length of each call in minutes. I need to calculate the number of calls that come in every 15 minutes and the average length of those calls.  Can anyone help??

 

Need to count number of calls per 15 Minute Interval

7 risposte
  1. 4 feb 2016, 22:30

    In the attached workbook, I created two calculated fields to be able to view average call time in 15 minute intervals. The tabs are labelled Step One, Step Two and Step Three.

     

    Step One

    Create a calculated field that converts your dates into 15 minute intervals. There are likely many ways to do this, but my formula looks like this:

     

    DATEADD(

        'minute',

        DATEDIFF('minute', [Start Date], DATETRUNC('hour', [Start Date])) % 15,

        DATETRUNC('minute', [Start Date])

    )

     

    The formula truncates the date to the nearest minute, than subtracts the correct number of minutes between it & the closest 15 minute interval. In the Step One, I display the original date and the converted date side-by-side, so that you can verify that the conversion is working.

     

    Step Two

    Create a calculated field that calculates the average call time. Formula is simply:

     

    SUM([Minutes]) / SUM([Number of Records])

     

    If you had a unique call identifier in your data, I would generally prefer this to be:

     

    SUM([Minutes]) / COUNTD([Call ID])

     

    but if your data doesn't have a unique Call ID, using the number of records should work as long as there is always one call per record.

     

    Step Three

    Verify visually. I plotted call volume for January 23rd, just to visually confirm that everything looks cool.

     

    Hope this works for you,

     

    -Steve

0/9000

e.g.

If the measure values are

#ID

⌗sales

⌗profit

⌗profitratio

⌗discount

⌗amount

#number of records

⌗measure values

How can I make a group to add a filter?

※only sales , profit , profit ratio , amount in the filter on Dashboard.

6 risposte
  1. 15 lug 2021, 02:14

    @Ryohei Moriyama​  interesting exercise.

    The only way to this is to select ⌗ID, ⌗discount, ⌗number of records and right click and "Hide".

    This is not most elegant way - it is the only way in this example.

    thanks,

    Adrian

0/9000

Hello All,

 

[Very new Tableau, so apologies if a similar question has already been answered in the past.]

 

I have a data set (attached herewith) where I need to show the number of males and females by each corporate level along with the total count of population for the entire data set. I have managed the first bit, that is create a worksheet with the breakdown of the population by each corporate level. I have used the #Number of Records as column and Corporate Level as Row. To it, I have added the Gender as Mark - Colour. This is all well and good and I am representing the data on a bar chart. Where I am struggling is to the get the count of the full population on the same bar chart. Does anyone know how can I achieve it? I am not sure if it is even possible on a single bar chart area.

 

Any help is much appreciated.

 

HR_IDGENDERCORPORATE_LEVEL1M12M13M14M15M16M17M18M19M110M111F112F113F114F115F116F217F218F219F220F221M222M223M224M225M226M227M328M329M330M331M332M333M334M335M336M337F338F339F340F3
4 risposte
  1. 7 dic 2018, 12:40

    Hi Avikar,

     

    You have done most of the heavy lifting, now just go to Analysis in the tool bar (above)-> Totals -> Show Column Grand Totals.

     

    Welcome to Tableau.

     

    If it solves your query please mark it as an answer.

     

    Hi Avikar, You have done most of the heavy lifting, now just go to Analysis in the tool bar (above)-> Totals -> Show Column Grand Totals. Welcome to Tableau.

     

    Thanks.

0/9000

I have to prepare a visual where I can show the state of open tickets and their age. I've been able to achieve this by creating a calculated field to calculate the age for an open ticket.

where [Date] is the date of creation of the ticket and '# of Days Open' indicated the age of the ticket.

 

The visualization comes out to be:

The problem for me is that I don't want to see so many bars. How can I convert the horizontal axis to intervals of 5? So tickets with age from 1-5 are stacked together, similarly for 6-10,11-15 and so on.

 

Thanks in advance.

6 risposte
0/9000

In my situation when I use #Number of Records, it includes duplicate records so the only number that is unique is the caller phone number. So I did a count by phone number but now may conversions are off because that calculates number of records div by conversions.

 

How can I take a distinct count / calls converted = to get this percentage

 

I have attached my test workbook

11 risposte
  1. 24 ago 2020, 17:55

    Hi Tommy,

    Thanks for the workbook. You were close. When using a Dimension (anything that has a blue icon next to the field name under tables), you generally can only count those, not SUM.

     

    You noted that you have more than one unique Caller Number per Number of Records amt. So, it would be COUNTD([Caller Number]).

     

    Which means, the % formula is: SUM([Calls Converted])/COUNTD([Caller Number]).

     

    Hi Tommy,Thanks for the workbook. You were close. When using a Dimension (anything that has a blue icon next to the field name under tables), you generally can only count those, not SUM.

     

    Thx, Don

     

    If this answers your question please mark as Best Answer or if helpful please Upvote. Best, Don

0/9000

I am a new Tableau User and I am hoping that I can use Tableau to help me demonstrate the extent to which my org is/ isn't using our existing database to track data.

 

I've read Re: Count Missing Values (Blanks or Nulls)  of  data source fields (Dimensions or Measures)  and I can follow how to make a calculation for each individual dimension/measure that will identify # null/ non-null values.  However, I am working with so many dimensions and measures that creating a calculated field for each will be a very large undertaking.

 

I've incla small sample data set as an example--but in reality I am working with 350ish dimensions or measures and trying to figure out how frequently each is actually being tracked---without having to create 350 separate calculated fields--and I don't know where to start.  Any assistance would be greatly appreciated!

6 risposte
0/9000

Build Flows with Flow Builder 

I get the following error message when trying to complete the challenge:

 

We set the value of the 'number' variable and subtracted '100' from it, but didn't get the expected result. Check your formula and use 'Insert a resource picker' to add the 'number' variable to the formula.

I've followed the instructions of the challenge but I'm guessing I've missed a step. 

Also tried the value "Subtract 100 from the number variable" but this didn't work either.

 

Stuck on

93 risposte
  1. 22 ago 2022, 22:05

    Hi @Harriete Arnold,

    Your formula should look like this:

     

    {!number}-100

     

    Just reference the number variable you created earlier.

     

    EDIT since this is getting a lot of views and some people seem to be struggling with this challenge:

    - "It won't save". It does save, the error you're getting is just a warning that doesn't prevent you from saving the flow.

    - Spelling: Don't just type the answer above when creating your formula. Reference the number variable you created in the previous step by inserting the resource into your formula. Also make sure your variables match the exact spelling in the instructions. They're case-sensitive. 

    - Save new version: Make sure you save, or save as before checking the challenge.

0/9000