I am new to tableau, and am making a table with columns of 'Month'
and rows is a combo of 'Status' and 'Type'
my data source looks like this
Month
Status
Type
Jan
0
Bird
Jan
1
Bird
Feb
1
Cat
Feb
1
Cat
Mar
0
Bird
Mar
1
Bird
Mar
1
Cat
Mar
1
Cat
Let's say I want my table visualization to show a 'Percentage with status 1' for the month, and animal type (as below)
How do I do this in Tableau?
(desired) visualisation
Jan
Feb
Mar
Bird
0.5
0.5
Cat
1
1
For this case, I found a way to 'skin this cat'
See screenshot
Related
I have two columns where I cam looking up a value in another sheet for date and value. The values are in rows and I want to display the results in columns.
How the source data looks
How I'm pulling it
I can't figure how to make the formula drag down where Column value changes, but the Row value stays the same. Meaning, AA1 would drag down to AB1, AC1, etc.
105 Weds Feb 1 at 9:00 AM
101 Weds Feb 1 at 12:00 PM
115 Weds Feb 1 at 4:05 PM
111 Weds Feb 1 at 9:40 PM
116 Thurs Feb 2 at 12:05 AM
97 Thurs Feb 2 at 1:20 PM
='Data'!B1 ='Data'!B3
='Data'!C1 ='Data'!C3
='Data'!D1 ='Data'!D3
I've tried using an array and it works for the displaying the next value in the Column, but not the next value in the Row like I want.
I've also tried some scripts I was able to lookup but wasn't successful.
So i use the following formula:
query(OVERVIEW!$B$11:$W;"Select B,C,D,I,G,H,K where month(C)="&0+$D$11&"and W matches '"&IF($B$10=TRUE;"CREATE PO";"")&"' Order by "&$B$3&"")
and what it does it checks in which month you are looking and based on the forecast it will check a couple of months and return the result in the table.
So for this example, lets say I have 12 monthly tables
Jan Feb Mar Apr Mei Jun Jul Aug Sep Okt Nov Dec
I want data to be filled under each table + forecast of 3 months
So in Jan, I get Mar orders for example. this works as it is now but if go to let's say
Okt it should give me 3 months later data so in Jan next year only the formula I have does it for this year only and if I remove the year part I get both years Jan and that is not what I want. it should count furter so Dec 2021 + 3 months will be Marth 2022.
Any pointers?
I was thinking something with Datediff en EOMONTH() functions??
Example what needs to be
UPDATE: Link to file:https://docs.google.com/spreadsheets/d/1ti7TdF2mWEGxA1E4FIeNJ7sEEtYTgu4UQtMxYqS7ets/edit?usp=sharing
Update I have created a working example in the second tab with the
following formula:
=IFERROR(QUERY(C4:C22,"select * where C >= date '"&TEXT(DATEVALUE(EOMONTH("01-01-"&E1,D1-1)+1),"yyyy-mm-dd")&"'and C <= date '"&TEXT(DATEVALUE(EOMONTH("01-01-"&E1,D1)),"yyyy-mm-dd")&"'"))
i do not know if this is the best solution but it works XD
=IFERROR(QUERY(C4:C22,"select * where C >= date '"&TEXT(DATEVALUE(EOMONTH("01-01-"&E1,D1-1)+1),"yyyy-mm-dd")&"'and C <= date '"&TEXT(DATEVALUE(EOMONTH("01-01-"&E1,D1)),"yyyy-mm-dd")&"'"))
pasting the above code in each colum and change the month to the same month you need for example Feb is "01-02"
I want to implement Dynamic timeline tree in Neo4j.
I have Accounts with transactions. Sample Data below
AC#
Year
Month
Day
Debit
Credit
123456
2019
Mar
01-03-2019
1000
1000
123456
2020
Apr
01-04-2020
2000
2000
123456
2020
May
01-05-2020
2000
2000
123457
2018
Jan
01-01-2018
2000
2000
123457
2021
Mar
01-03-2021
1000
1000
123458
2017
Jan
01-01-2017
2000
2000
123458
2021
Mar
01-03-2021
1000
1000
If the users clicks on any account number, Year node should open and on clicking Year node, Month nodes should open and so on.
Year and Month nodes should be dynamic. This means if some year is not available for an account number it should not be displayed.
Please help
I have been trying to get the number of days between two dates in google-sheet but sometimes it gives an integer and sometimes it gives another date. How to get only the integer?
Shared public sheet (sheet name DS):
https://docs.google.com/spreadsheets/d/10NzbtJhQj4hQBnZXcmwise3bLBIAWrE0qwSus_bz7a0/edit#gid=517697699
Example
SN COMPANY AppliedDate DaysSince Today
-----------------------------------------------------------
2 McDonald Feb 17, 2021 54 1
3 Nielson Feb 17, 2021 Apr 20, 1900 2 **This should be number NOT date
4 Edelman Feb 17, 2021 111 3
5 Upstart Feb 19, 2021 Apr 18, 1900 1
6 Root Inc. Feb 19, 2021 Apr 18, 1900 2
Required
For the column DaysSince I would like to have only number. I want number between two dates but sometimes the same formula works sometimes does not work.
Is there any other methods to get number of days between two dates?
Go Format > Number > Number to format you entire column. Your problem is that your format is set as Automatic.
I have data coming in a certain way, but I need it automatically converted into a different layout for a specific chart in Google Data Studio.
Basically, I want to go from this
Date Apple Banana Cherry
Jan 1 500 800 2000
Jan 2 800 920 2878
Jan 3 1700 1850 3000
To this:
Date Type Amount
Jan 1 Apple 500
Jan 1 Banana 800
Jan 1 Cherry 2000
Jan 2 Apple 800
Jan 2 Banana 920
Jan 2 Cherry 2878
Jan 3 Apple 1700
Jan 3 Banana 1850
Jan 3 Cherry 3000
I can't think of a solution (I'm relatively new at this). I'm hoping someone might be able to point me in the right direction. Thanks in advance for any help I can get!
ultimate 720° freedom with no limits:
=ARRAYFORMULA({"Date", "Type", "Amount";
SPLIT(TRANSPOSE(SPLIT(TRANSPOSE(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
IF(B2:Z<>"", A2:A&"♠"&B1:1&"♠"&B2:Z&"♦", )), , 500000)), , 500000)), "♦")), "♠")})
If you haven't got too many rows and columns, you can use a split/join approach:
=ArrayFormula({"Date","Type","Amount";split(transpose(split(textjoin("♫",,A2:A4&"♪"&B1:D1&"♪"&B2:D4),"♫")),"♪")})
Because this combines the data into a single cell before splitting it, there is a limit of 50,000 characters on the data plus separator characters.