Reference Cell to the left of last used cell of another column - if-statement

I am trying to get an excel forumal that will populate that Cell's text referenceing the last used cell in another column.
For example I want the output to be the date of the last used cell in column "B" of ($60.00) to populate the "1/18/13" in a sepereate cell. Does anyone know a formula that will give me the 1/18/13
row# A B C
10 1/12/13 $51.00
11 1/15/13 $15.00
12 1/18/13 $60.00
13 1/31/13 $89.00
14 2/15/13 $43.00
15 2/18/13 $33.00
16 3/15/13 $100.00

Use the onChange event in a macro, or the NOW() function as described in Excel OnChange event

Related

Max if statement based on column

I have week no column that came from date, based on the max week no column I am trying to get the if statement yes or no.
Example: if week number column contain from 01 to 40 so 40 is the highest week no so I would like to get the result is Yes by using calculate column otherwise no.
Week No Deired Result
1 No
2 No
3 No
4 No
5 Yed
I got the answer...
IF(MAX(Table [weekno]) =Table [weekno], "Yes", "No".

PowerBI - lookup - is a value that's in column 1 in column 2?

This is something that I can do in my sleep with Excel but I am struggling with this basic thing in PowerBI. I have a column in my Items table called ID and another column in the same table called ParentID.
What I am looking to do in PowerBI is create the CalcColumn - Looking up to see if an ID is in the Parent ID column and bringing back a response
I've tried several different variations of a calculated column using the lookup value function but I either bring back the parent id for a value (which I already have), I bring back random id numbers (that are neither the id nor the parent) or it tells me that I've got multiple values.
ID
ParentID
CalcColum
1
Parent
2
1
Not found
3
Parent
4
1
Parent
5
3
Not found
6
4
Parent
7
6
Not found
8
Not found
How would I resolve this?
It's fairly straightforward in DAX too.
Try this expression as a calculated column:
IF ( Table1[ID] IN VALUES ( Table1[ParentID] ), "Parent", "Not found" )

Power BI: Inserting both year and month in line chart legend

I have a line chart in powerBI with the last 6 months as a legend (Sep,2020 - Feb,2021). The issue is that I want to have the months sorted by year (Sep-2020, Oct-2020....Jan-2021, Feb2021) but I can't insert both year and month in the legend and it accepts only one of them:
I have tried to make a new column in the edit query section that extracts the value (year-month) from the "Create_date" date column. But when I insert this column in the legend it takes all the values from all of my data, and not the last 6 months. The date filter I have is for the original "create_date" column.
One way is to add a new column via the Power Query Editor that computes the legend for you. There maybe another funky way but this is how I would approach it.
The column has the following function
= Table.AddColumn(#"Expanded Content", "Date For Legend",
each Number.ToText(Date.Year([Timestamp])) &
"-" &
Text.PadStart(Number.ToText(Date.Month([Timestamp])), 2, "0") &
" " &
Date.MonthName([Timestamp])
)
This basically take my column called [Tmestamp] and formats it to a string field for my legend use. Note as 2020-09 comes before 2021-01 everything is in order.
and then change the legend value on the line chart to Date For Legend

How to load & use column names/headers > 65 char in IICS?

CSV/ Flat file with column names with no. of months and dates E.g. Benchmark Bloomberg 6 months in year 10/30/2018..
Informatica( IICS) fails to load > 65 char field names, so I loaded it as data -first row. Now I need to do unpivot and do logic based on the “original column Names” i.e. if the month was 6 & date was Oct 30 2018 compare with created date and do X. My best approach is as below. Please suggest a better approach.
1) load column names also as data 2) take out row 1 and store it as 1 row table 3) unpivot the table to make 1 column table and re-pivot it to make column names 4) Apply to the original table in SQL( no issues with > 65 char)
If your fields will always be in the same sequence edit the header names in the source transformation. Configure the source so that data starts on second row. There may be an option to ignore header row values. It should be clear from the UI once you edit the transformation.

Using ArrayFormula for a running total causes a circular reference

See attached Google Sheet for example/sample of my issue. I am trying to use an ARRAYFORMULA() to keep a running total in column C, based on adding the previous row's value in column C with the current row's value in column B. Before I make it an ARRAYFORMULA, it works fine. In column F-H, you can see I tried the array version and get a "circular dependency" error.
The working formula:
=B3+C2 (this is in cell C3)
The non-working formula (with the desired ARRAYFORMULA):
=ArrayFormula(G3:G+H2:H) (this is in cell H3)
My question is, what adjustments can I make to my formula that will allow me to auto-fill this formula down the page as new rows are added (and not populating data for blanks).
Name Days Total Days
Jane 5 6
Tom 2 8
Billy 4 12
Sue 6 18
Sally 1 19
Sample document
=ARRAYFORMULA(IF(B2:B="", ,SUMIF(ROW(B2:B), "<="&ROW(B2:B), B2:B)+1))
demo spreadsheet
if this is what you need ( to always sum total in C column ),
then you don't need arrayformula you can use this simple cell formula (this is C2 formula):
=B2+(If(ISNUMBER(C1), C1, 0))
and spread it down the page, here is the sheet I captured
cheers, kres