previous month
9 Topicsneed to create a report to get the daily attrited Members based on the previous month data
I am new to power Bi, where i need to create a report for daily attrited members based on the previous month data. I daily snapshot dates, new members acquired each snapshot date. I need to calculate last month member as of last month. here is the logic i need to get. Last month members using the last month snapshot date. daily net = total members - last month members closed = new members - daily net, i have atatched the data for reference, can you please help.Solved2.7KViews0likes3CommentsRunning Balance and Adding Previous Month Balance
I have calculated my running balance: if balance between available and scheduled is less than 0, than 0 otherwise the difference of available to scheduled - we can't carry over a positve balance. If you don't use it you lose it. My problem is that I then need adjusted scheduled hours to be scheduled hours + -running balance from previous month. You can see in my formula I used CALCULATE('Scheduled Hours Report'[Running Balance],PREVIOUSMONTH('Date'[Date])) but it's not pulling my running balance from the previous month. Is this because my running balance is from two different tables linked by date? If so, how do I get an adjusted scheduled hours column based on any negative difference between available and scheduled hours.Solved1.4KViews0likes4CommentsPrevious Month Sales with Month Selected in Slicer
Hi All, I got stuck with a DAX measure. I need to calculate the Current Month's sales and the Previous Month's sales. Both the measures are working perfectly if nothing is selected in the date or month slicer. when I select a month in the slicer then the Previous Month's sales measure is giving a blank. For example, if I select "June" in the slicer table then the Current Month's sales measure should be of June and the Previous Month's sales measure should be of May. My measure are given below: Current Month Sales = TOTALMTD ( SUM ( 'Dataset supply chain'[total sale] ), DATESMTD ( 'Dataset supply chain'[Order date] )) Previous Month Sales = CALCULATE ( SUM ( 'Dataset supply chain'[total sale] ), PREVIOUSMONTH ( DATESMTD ( 'Dataset supply chain'[Order date] ) )) I am also attaching screenshots of the results. Looking forward to a solution. Thanks, Sid1.6KViews0likes6CommentsPrevious month sales
Hi All, Previously thanks for the help, I have calculated previous month sum of values with using formula as below (Which is working fine ) : Previous Month = CALCULATE(SUM(data[data_A]),DATEADD(Dates[Date_2022],-1,MONTH) ) But now I want to calculate same previous month value but in this formula I have to use Filter-condition and I am getting blank values please find the below used formula : Previous month = CALCULATE(SUM(TableA[A]),FILTER(TableA,TableA[Value] = "EW"),DATEADD(Dates[Date_2022],-1,MONTH)) Please help me on this. Thanks ShipraSolved5KViews0likes4CommentsReturn previous months range when multiple months selected
How do I return the [_Inc Count] for the equivalent number of previous months based on the months the user selects (whether that is 1 or more)? Details: I have a previous month formula as follows: _Inc Count PM = CALCULATE('Incidents'[_Inc Count], PREVIOUSMONTH('DATE Table'[Date])) which shows me the number of tickets from the month prior to whatever month they selected (from a filter showing a list of MMM-YYYY) if they select only 1 month. But, if the user selects more than 1 month, how do I return the [_Inc Count] for the previous equivalent number of FULL months? For example, if the user selects April-2022 and March-2022, I need to return the count for ALL of Jan and Feb (they selected 2 months so I need the two months before that range). If they select Jan, Feb and March, I need it to return Oct, Nov and Dec. I have a previous period formula that returns the equiv number of days but in this case, I need it to return full months even if one of the months selected is only thru the 4th or whatever. Please help?Solved2KViews0likes3CommentsPrevious month not working
Hi, If you could please help me out with this error: I have a sales table (with sales of several years back) and the corresponding calendar table. All I need is the count of sales for the previous month. So, I created a measure for the count of sales, like Sales count = COUNTROWS( Sales( SalesID ) ) I created the measure for the sales count previous month, like the following: Sales count PM = CALCULATE( [Sales count], DATEADD( Calendar[Date], -1, MONTH ) ) The result gives me the count of all sales of the table, ignoring the month filter, which is obviously incorrect. Therefore, I experimented with the following alternative formula: CALCULATE( [Sales count], YEAR( Calendar[Date] ) = YEAR( TODAY() ), MONTH( Calendar[Date] ) = MONTH( TODAY() ) -1 ) This time, the result turns out almost correct. But, the month of January does not show any value, because the formula restricts the year to the current year. BTW, I had to filter the year, because otherwise the result sums up the previous month of this year and all previous years too (for example, if the current month is October, the formula would count sales of September this year, and also from previous years). Also, I experimented with the PREVIOUSMONTH function, which always returns a blank result. Am I doing something wrong with the Dateadd function? Thank you and regards.Solved9.9KViews1like2Commentscalculate active customers previous month and current month
I have 3 columns and I want to get active customers for current month where status = "won" and active customers for previous month where status = "won" for current month im using ActiveMembers = CALCULATE(DISTINCTCOUNT(Table[Customer]),PARALLELPERIOD(table[Date],0,MONTH),FILTER( 'Table','table'[Status] ="won" )) and it's working fine. but i have getting no value for previous month and I'm using: ActiveMemberPreviousMonth = CALCULATE(DISTINCTCOUNT('table'[Customer]),PREVIOUSMONTH('table'[Date]), FILTER('table','table'[Status]="Won")) Problem statement: I want help to get current active member and previous month active member where status = "Won" expected solution: eg: if today is 12 March 2021: I want active users of the current month March 2021: 5364 users and previous month i.e Feb 2021 : active users 3265 users. my example data for the table is shown below customer date status xyz 03-01-2018 won abc 03-01-2018 lost efd 03-01-2018 won ghy 03-01-2018 lost tgh 05-02-2018 won fht 01-01-2019 wonSolved6.4KViews0likes9CommentsDifference from previous period (in YYYYMM format)
Hello, I have a column named PERIOD (in YYYYMM) format in both the fact and calendar tables. Is there a way to calculate the difference between current period and previous period in the pivot? Please see the screenshot below: Difference between 201902 and 201901 should be 156,276 - 258,244 = (101968) and so on. I want to show the actual values and difference in columns (pivoted format). Thanks in advance!Solved3.3KViews0likes3CommentsProblems getting previous month averages
I have one table (Overtime) with Activity_date and Activity_hours. I have a date table (Date) which has a relationship between activity_date and the date column of the date table. I am trying to find the average number of weekend hours. I've tried a few different approaches, but below is the most recent. It works up to the point of adding the PreviousMonth portion. Once I add that I only get blank. Any help would be appreciated. Test = calculate(divide(sum(Overtime[Activity_Hours]),DISTINCTCOUNT('Overtime'[Activity_Date]),0),WEEKDAY(Overtime[Activity_Date],2)>5,PREVIOUSMONTH(Overtime[Activity_Date]))Solved3.2KViews0likes8Comments