end of month
2 TopicsNeed help with DAX Formula
Hi I need help for a formula. I am only getting EOM for the current month using this formula. How can i get for the remaining months as well. I am currently using Qty Available Last Day of Month = VAR _SKU = SELECTEDVALUE('DEMAND & SUPPLY (3)'[2nd Item Number]) VAR LastDayOfMonth = EOMONTH(MAX('DEMAND & SUPPLY (3)'[Sched Pick].[Date]), 0) RETURN CALCULATE ( sum ( 'DEMAND & SUPPLY (3)'[Quantity Available ] ), // Replace 'YourTable' and 'Quantity' with your actual table and quantity column names FILTER ( ALL ( 'DEMAND & SUPPLY (3)' ), // Remove any existing filters on 'YourTable' 'DEMAND & SUPPLY (3)'[Sched Pick].[Date] = LastDayOfMonth && 'DEMAND & SUPPLY (3)'[2nd Item Number]=_SKU ) )Solved3.6KViews0likes24CommentsSum if date is within last 7 calendar days of month
Hi, I need to calculate the sum of the # of invoices, but only if the Date is in the last 7 calendar days of each month. I will have YTD data, updated daily. # invoices Date 7 6/27/2023 4 6/28/2023 2 6/29/2023 1 7/21/2023 2 7/22/2023 4 7/27/2023 5 7/28/2023 2 7/29/2023 3 7/31/2023 I thought about trying to create a column with "true" if it is in the last 7 days, and "false" if not. But I don't know how to write that. Anyone have ideas?Solved1.1KViews0likes4Comments