excel formula
3 TopicsNeed help with Excel formula
Hi, I need a help with excel formula and below is the scenario, Data exisiting in the format , Basis the start date M1 will be considered and items count is given Start Date End Date Month1 Month2 Month3 Month4 Month5 Month6 Month7 Month8 Month9 Month10 Month11 Month12 1-Jan-25 31-Dec-25 1 1 1 1 1 1 1 1 1 1 1 1 1-Apr-25 31-Aug-25 1 1 1 3 3 16-Jun-25 31-Jan-26 1 1 1 1 1 2 2 3 Desired Output - Basis the start the date header Month values to be derived and item count to be update in corresponding months Start Date End Date Jan-25 Feb-25 Mar-25 Apr-25 May-25 Jun-25 Jul-25 Aug-25 Sep-25 Oct-25 Nov-25 Dec-25 Jan-26 1-Jan-25 31-Dec-25 1 1 1 1 1 1 1 1 1 1 1 1 1-Apr-25 31-Aug-25 1 1 1 3 3 16-Jun-25 31-Jan-26 1 1 1 1 1 2 2 3513Views0likes4CommentsDAX Events In Progress with other conditions.
Hi all, I have quite a complicated issue, with doing a events in progress with muiltpe outcomes. I've managed to do the code in Excel but I'm unsure how to translate this into DAX. I would basically like to go back in time with a calender slicer, in put a range to see how many pets adoptions were in progress, completed and withdrawn. The sheet is regularly updated telling me the status of all pet adoptions. I have start day of progressing the adoption and Status date of when the adoption finalises. On the Status date if the adoption is still in progress, it will be equal to the start date. If the adoption gets completed or withdrawn then the status date will be day this happened. This is the logic breakdown I came up with in Excel. Step 1 Check if Status is "on break" or if has start date or if the Status Date & Start day match. If either is TRUE, then Current Status Step 2 If Start date is less than sliced date, return "Not Started" Step 3 If sliced date is greater than the start date, less than the end date and end date is not equal to 0, then return "In Progress" Step 4 If Status = "In Progress" then return "In Progress" Step 5 Finally if Status = Withdrawn than return "Withdrawn" Otherwise "Completed" I've managed to make this work in Excel with the current code. =IF(OR(B2="Break/Paused",C2=D2,C2=0),B2,IF($G$3<C2,"Not Started",IF(AND($G$3>C2,$H$3<D2,D2<>0),"In Progress",IF(B2="In Progress","In Progress",IF(B2="Withdrawn","Withdrawn","Completed"))))) Where B is Apprentice Status C Start is Start Date D is Status Date. G&H would be date used for the slicer, It is just fixed in Excel for conventiece. So for example if the slicer is set to 01/04/2021 – 01/04/2022, it will tell me all the live adoptions during that period. I've tried doing this in DAX with the following code, but not going to lie I don't really know what I'm doing! Datesbetween = VAR EndDate = MAX('Fiscal Table'[Date]) VAR StartDate = MIN('Fiscal Table'[Date]) VAR Result = CALCULATE( [Adoptions], REMOVEFILTERS('Fiscal Table'), 'Adoptions Data'[Start Date of Adoption] <= EndDate, 'Adoptions Data'[Status Date] > StartDate ) Return Result I hope I have made sense, and thanks for reading!2.2KViews0likes3CommentsTransforming a date related Excel formula into DAX
Hi Everybody, I am struggeling with the translation of an Excel formula "StartDate" into Power BI (DAX) StartDate = "="&(Today()-DATE(1970;1;1))*60*60*24, EndDate = "=1646092800" It appears to me that the "date" & "today" formula concept of excel, which returns an according serial number doesn't exist in PowerBiSolved1.2KViews0likes8Comments