Skip to main content

HI everyone,

I have connected tableau to 2 lists from SharePoint and already completed the worksheet.

I would like to add the total number of records (last column) from both of worksheets together based on date

     +If the date match--> add total from both

     +if the date NOT match --> add only available value, missing value will be null.

 

How can I do that?

 

Or there is any way that I can add dates from 2 column into 1 column?

Combine data (datetime) from 2 columns into 1pastedImage_1.png

 

Thank you so much

 

Sonny
31 respostas
  1. 30 de jan. de 2020, 18:32

    Hey Sonny,

     

    Based on the screenshots in your previous comment, I'm assuming that Normalized Weekly is the week number for the corresponding date column and there is no relationship between your two data sets. If a view with combined date is the only purpose of this workbook, then do the following.

     

    Note: I've updated the excel spreadsheets to replicates your data as much as possible.

     

    1. You don't even have to union the two data sources. Just join them using Full Outer Join and use the following clause as the join clause. After doing this, your data will have columns from both your worksheets.

    Hey Sonny, Based on the screenshots in your previous comment, I'm assuming that Normalized Weekly is the week number for the corresponding date column and there is no relationship between your two dat

     

    2. Create the following calculated fields - one for each measure that you want to combine and show in your view.

    • NormalizedWeekly_WOD_CD

    pastedImage_4.png

    • Shift_Created_WOD_CD

    pastedImage_9.png

    • Date_WOD_CD

    pastedImage_13.png

    • # of WOD Created

    pastedImage_19.png

    • # of CD Created

    pastedImage_17.png

     

    3. Drag an drop all the above created fields on to the rows and you should have what you want:

    pastedImage_20.png

     

    Attached all the files used. Let me know if this helps and if it does, then please mark it as the correct answer.

     

    Regards,

    Rohit

0/9000