column formula assistance
5 TopicsPYTD / YOY QTD formula issue
I have data that is only giving a quarterly date so the typical PYTD calculation is not working due to the time intelligence. I am trying to use this formula below but am getting an error saying "STARTOFQUARTER" is not of type DATE" What can I do from here? Or can anyone point out an issue with this formula or provide a better functioning formula? YoY PQTD = // Current Quarter To Date VAR CurrentQTD = CALCULATE ( SUM (OWSSummaryByQuarterByEU[channel_licenses_net_added] ), // Filter for the current quarter FILTER ( OWSSummaryByQuarterByEu, OWSSummaryByQuarterByEu[quarter].[Date]>= STARTOFQUARTER('EU Report'[Today]) && OWSSummaryByQuarterByEu[quarter].[Date] <= TODAY() ) ) // Previous Year's Same Quarter To Date VAR PreviousYearQTD = CALCULATE ( SUM (OWSSummaryByQuarterByEU[channel_licenses_net_added]), // Filter for the same quarter of the previous year FILTER ( OWSSummaryByQuarterByEu, OWSSummaryByQuarterByEu[quarter].[Date] >= STARTOFQUARTER ( DATEADD ( 'EU Report'[Today], -1, YEAR ) ) && OWSSummaryByQuarterByEu[quarter].[Date] <= DATEADD ( 'EU Report'[Today], -1, YEAR ) ) ) // Return the YoY difference RETURN ( CurrentQTD - PreviousYearQTD ) / ABS ( PreviousYearQTD )Solved800Views0likes4CommentsHelp with Last Quarter Formula
I calculated the sum for last quarter and last quarter previous year but they only work when I plot them against a time period. I am trying to plot it against customer name instead and the measures just return blanks. My data has sums of activity by quarterly dates only, not daily. These are my measures that are working but only if plotted against date logic. Net Added Last Quarter = CALCULATE(SUM(OWSSummaryByQuarterByEU[channel_licenses_net_added]), PREVIOUSQUARTER(OWSSummaryByQuarterByEu[End of Quarter].[Date])) Net Added Last Quarter Prior Year = CALCULATE([Net Added Last Quarter], SAMEPERIODLASTYEAR(OWSSummaryByQuarterByEU[End of Quarter].[Date])) Does anyone have a formula that would give me the sum of last quarter when not plotted against time? I'm assuming it needs to be a calculated column but everything I try is returning blank or error. Willing to try DAX or Power Query solutions.1.2KViews0likes7CommentsValues from Unrelated table
Hello Part of my model is .. I need to count the number of StudentID's in Table_B that have matching values in Table_C based on a Regdate range from Table_B. I've got the folowing Dax expression, that is returning a value, but not the correct one. EVALUATE ROW ( "j", CALCULATE ( COUNTROWS(Table_B), FILTER ( Table_B, Table_B[RegDate] >= DATE (2025, 1, 1) && Table_B[RegDate] <= DATE (2025, 1, 31) && NOT ( ISBLANK ( LOOKUPVALUE ( Table_C[StudentID], Table_C[StudentID], Table_B[StudentID] ) ) ) ) ) ) Thanks in advance RoySolved733Views0likes3CommentsNewBie - Create new column that fills blank dates based on matching "order numbers"
Hi All, Very new to PowerBi here, covering a colleague who is out sick. Based on the table below, the table name is: 'OnlineChannel'. I am trying to create a new column based on the column "Scheduled Date" below, the new column will be named "Verified Scheduled Date". The new Column should have no blank values if the "Order Number" has a match in another row with a scheduled date. For example, Order Number "20246789" appears 3 times on the table, in lines 8, 9, and 10. The "Scheduled Date" value in line 10 is not blank, therefore all values for Order Number "20246789" in lines 8, 9, and 10 in the new "Verified Scheduled Date" column should match the existing date in line 10. I have no idea where to start, please help. Thanks in advance! Line Order Number Scheduled Date 1 12395969 1/1/2025 2 14959688 12/6/2024 3 14959688 4 18495768 9/1/2025 5 20241367 6 20241367 1/1/2025 7 20243959 5/15/2025 8 20246789 9 20246789 10 20246789 6/18/2025Solved577Views0likes2CommentsFormula to incorporate only not blank cells
I want to create a column that returns if a project is expired. I only want to apply this formula to rows that do not have a blank value under Permit Extension Date. If the Permit Extension Date is blank it should either return a blank or "not applicable" value. For those that have a permit extension date (is not blank), the value should return as expired if the permit extension date has passed (is less than today) and the doucmentation fo complete date is blank OR the documentation of completion date is after the permit extension date. See below: Permit Extension Date Documentation of Completion Date Expired, Not Expired, Not Applicable 6/23/2024 Not Applicable 6/6/2025 Not Expired 5/3/2024 Expired 7/15/2024 6/1/2024 Not Expired This is the formula that I came up with so far but it is returning as expired when the permit extension date is blank Permit Extension Expiration & Construction Incomplete = IF( NOT(ISBLANK(TPermitExpiration[Permit Extension Date])) && VALUE(TPermitExpiration[Permit Extension Date])< TPermitExpiration[Construction Documentation of Completion Date] || ( ISBLANK ( TPermitExpiration[Construction Documentation of Completion Date] ) && TPermitExpiration[Permit Extension Date] < TODAY() ), "Expired", "Not Expired" )Solved683Views0likes2Comments