dates between
6 TopicsFinding Change in Start Date Between Snapshots
Hello, I've been trying to create a calculated column in my workbook that calculates the change in start date for each Activity ID since the last snapshot was taken. Snapshots are taken on the first of every month, and activities could move forward, backward, stay the same, be completed or cancelled, or be newly added in each snapshot. I can't figure out how to create this formula in DAX, so I was wondering if someone would be able to help me out? I've included a sample image of what I'm going for below with the highlighted column being the one I'm trying to create. I really appreciate any help anyone can offer!Solved1KViews0likes4CommentsCount rows with filtered dates
I am trying to create a measure with a count of people with graduation dates within a specific date range (June 2022 - Sep 2022) so they can be recognized at our event. In this table the graduation date is BTM_End_Date. There are no other tables involved. When I filter dates manually in the table view with datesbetween on or after 06/01/2022 and on or before 09/01/2022 I get 20 records. I have tried the following: BTM_within_90_days = CALCULATE(COUNTROWS('pre-event'), FILTER('pre-event', 'pre-event'[BTM_End_Date] >= 06/01/2022 & 'pre-event'[BTM_End_Date] < 09/01/2022 )) I get the result : MdxScript(Model) (4, 94) Calculation error in measure 'pre-event'[BTM_within_90_days]: DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values. If I remove the & 'pre-event'[BTM_End_Date] < 09/01/2022 I get the result of 82 which is the total number of people with any graduation date. If I try BTM_within_90_days = CALCULATE(COUNTROWS('pre-event'), filter('pre-event', 'pre-event'[BTM_End_Date] <= 09/01/2022)) I get a result of 283 which is the number of blank records. I checked this by running BTM_within_90_days = CALCULATE(COUNTROWS('pre-event'), filter('pre-event', ISBLANK('pre-event'[BTM_End_Date]))) I have also tried : BTM_within_90_days = COUNTAX('pre-event', DATESBETWEEN('pre-event'[BTM_End_Date], 06/01/2022, 09/01/2022)) Which returns (BLANK) In the screenshot above, I show that the column I am using is formatted as a short date. Any help is greatly appreciated.Solved1KViews0likes1CommentHi, Could you please explain me me how to do a count of column items in particular date period ?
Hi, Please explain me how to do the count of coloumn item in a particlar time period ? and last three days ? I have a sales data with particlar sales type " Direct", "Inderect", etc. I want to count this based on the time period and MTD. 1) Do I need a sperate Clander table to use the time intelligence functions ? 2) What is the DAX for this 3) Do I need key tables ? 4) What are the parameters I need to choose for a matrix visulization ? 5) How to automate this report ? I want send this automatically on daily once in a particlar time.Solved2.2KViews0likes5CommentsHow to measure cumulative active project hours from start and end dates?
I have a table of active projects, each with their name, ID, start date, end date, and assigned hours per day. I want to create a graph looking ahead 6+ months of all the hours we are expecting these projects to take up. Right now, I'm building a table starting with a column of every working day from the beginning of 2021 to mid 2022. I'd like to take each of these dates, and go through the whole table of active projects looking for all projects that have start dates before or on the work date and end dates after on on the work date, then sum all of the expected hours per day of these projects. How can I accomplish this?630Views0likes2CommentsCalculate booked amount and to be renewed based on contract dates
Hi, I'm trying to build a measure to expand a monthly amount between dates, taking into account if its' booked or to be renewed, (that depends on the contract end date) This is the table with the contract amounts and dates. I dont' care about the day of the month. I've got a contract monthly amount that can change from one month to another; that's why I calculate from monthly amount and not total amount CONTRACT START DATE END DATE TOTAL MONTHS MONTHS BOOKED FROM ACTUAL MONTH (INCLUDED) MONTHLY AMOUNT AMOUNT BOOKED LAST MONTH FOR CALCULATIONS AMOUNT TO BE RENEWED AAA 01/01/2017 30/09/2022 60 17 5.000,00 85.000,00 01/11/2022 10.000,00 BBB 17/11/2020 17/11/2022 36 19 1.000,00 19.000,00 01/11/2022 0,00 CCC 01/05/2021 30/09/2021 5 5 2.500,00 12.500,00 01/11/2022 35.000,00 116.500,00 45.000,00 We already have another calendar table from 01 Jan 2021 to last contract date (17 Nov 2022). And I want to build a measure to get something like this: 2021 2022 BOOKED TO BE RENEWED BOOKED TO BE RENEWED JANUARY 6.000,00 2.500,00 FEBRUARY 6.000,00 2.500,00 MARCH 6.000,00 2.500,00 APRIL 6.000,00 2.500,00 MAY 8.500,00 6.000,00 2.500,00 JUNE 8.500,00 6.000,00 2.500,00 JULY 8.500,00 6.000,00 2.500,00 AUGUST 8.500,00 6.000,00 2.500,00 SEPTEMBER 8.500,00 6.000,00 2.500,00 OCTOBER 6.000,00 2.500,00 1.000,00 7.500,00 NOVEMBER 6.000,00 2.500,00 1.000,00 7.500,00 DECEMBER 6.000,00 2.500,00 60.500,00 7.500,00 56.000,00 37.500,00 Can you help me? I've been looking here for some measures example but I can't get the right formula Thanks!!Solved1.3KViews0likes3CommentsDynamic date calculation i.e. rolling total for 12-24 months ago
Hi all you helpful people! So I am trying to recreate an excel for someone (trying to convert everyone to PBI!!) which shows the following columns: Product name (easy) last 12 months rolling (managed that) *12 months BEFORE the last 12 months rolling (this is where i come unstuck!) Last 3 months rolling (ok with that) *Same 3 month period the year before (eeek help!) Last month total (fine and dandy) *Same month total last year (arghghghghghhg!) Please could you help me wiht those in with a *? I am a relative noob to this so am still fumbling my way around DAX. I was hoping SAMEPERIODLASTYEAR might help, but i couldnt get that to work on a table that wasn't date based. My tables are called: 'Sales' with the relevant field being [Value] 'Date table' [Date] or 'Sales' [relative continuous month] Hoping one of you can help me 🙂Solved11KViews0likes20Comments