Power Bi DATEDIFF column 'date1' in table 'table1' cannot be found of may not be used in this expression - powerbi-desktop

Does anybody here know why is this happening. I have 2 dates column in a table, 'Date of First Contact' and 'Date of Last Activity'. Can someone enlighten me why is this happening? Thank you in Advance

Related

Excel Find Average Between Dates

I have an unpivoted dataset where column A is country, column B are dates (01/01/2020 - 01/01/2021) and column C are number of Covid cases. In a separate tab I have a column A with the individual country names and I want to calculate the average of Covid cases for specific dates (e.g. between 01/01/2020 and 15/01/2020). However, using averageifs I keep getting #DIV/O!. Also, if I do "=IF(B2>1/1/2022,1,0)" where C2 is a date prior to 2021, I still get 1, which is wrong. I think something is wrong with the way dates are formatted but cannot seem to solve it. Any help would be really appreciated.
Thank you!

In Excel, how can I create a table which has a start date and end date with the unique value next to it from a list of dates with values?

I have multiple very large table's in Excel which are similar to this (all the tables have the same repeating value in a particular date range):
I would like to create other tables from this which have a start date and end date with the unique value next to it.
Using the example above - I would want to get the following:
I'm struggling to find a way to do this. Am I missing a trick somewhere?
I was wondering whether anyone can help me out with this/ has useful advice?
Thank you.
Use a Pivot table.
Put the date in values twice and change one to the Min and the other to the max then format the output as dates:

Power Pivot Many to Many Relationship

Please help.
Simply put I am trying to get the calculated column in table 3 to display the participation number from table 2. Need it to filter by name and date.
The formula in the calculated column is my attempt which doesn't work.
Any help or questions would be appreciated.
One way to do it would be:
=LOOKUPVALUE(Table2[Participation Num],Table2[Name],Table3[Name],Table2[Date],Table3[Date])

How do I transpose a list of data over a range of dates to individual dates in Excel VBA?

Example SSheet
Hello, I have a data analysis problem i'm not sure how to tackle, please see example google sheet. I have a list of data for the cost of products over a date range; The date range is specified by a start and end date column. I need to write a macro which identifies the cost of a specific product for each day in the date range, and match it to a unique product list by day (sheet2). I honestly don't know where to start as my knowledge of VBA is limited, but i do have some familiarity with the language. Would anyone be able to help me figure out a way to tackle this problem? I already have a macro which generates Sheet2, I just need a way to populate it with the information from sheet1. Any help would be enormously appreciated.

Skipping Column in OFFSET Function depending on Month in Excel

I am hoping someone can help me, I am looking for a formulae to help me provide figures.
The below table shows the sales items in Column A, I am looking to add columns C,E,G (basically every 2nd column depending on which month we are currently in). I have used the OFFSET function currently bur now I want to add columns inbetween (as below) to show the projected sales.
Can anyone help?
Thanks

Resources