weekly
7 TopicsWeekly closingBlance by AccountNo with missing WeekEndDate
Hi everyone, I need help in generating a matrix/bar chart with weekly closing balance. I have two datasets : Position Date Date has been created based on "AccountingDate" of Position table. I added a column "WeekEndDate" which is the end date of each week. I tried to get the last BalanceValue for each "AccountNo" at the end of the week. The problem is that sometimes, AccountNo has no record in a week. Thus value in matrix is wrong. Here is an example : If my WeekEndDate is 14/01/22, final week balance should be : 95808,99 + (-1646984,4056) + 91288,25 = -1459887,17 But in my matrix Balance of AccountNo 512411 was not took in the measure. Hence It returns : (-1646984,4056) + 91288,25 = -1555696,16 I currently use this method I found from another forum and tuned it with my dataset : lastnonblankdate = LASTNONBLANK ( 'Positions et mouvements bancaires réels'[Accounting Date], CALCULATE ( SUM ( 'Positions et mouvements bancaires réels'[BalanceDaily] ) ) ) lastnonblankvaue by category: = VAR _lastnonblankdatebycategory = ADDCOLUMNS ( SUMMARIZE ( 'Positions et mouvements bancaires réels', 'Mapping comptes'[Accounting No] ), "@lastnonblankdate", [lastnonblankdate] ) RETURN IF ( HASONEVALUE ('Date'[Week End Date]), CALCULATE ( SUM ( 'Positions et mouvements bancaires réels'[BalanceDaily] ), TREATAS ( _lastnonblankdatebycategory, 'Mapping comptes'[Accounting No], 'Date'[Date] ) ) ) Do somoes ever faced this issue and came up with an alternative or solution. Thank you!Solved767Views0likes3CommentsPrevious week sales out of weekly data table
Hi, i have this data table of WEEKLY sales (by week number): i have a measure of Sales = sum(Quantity), i wish to create : 1. a measure of sales for the previous week (please notice the situation that the previous week for week1 is week52/53 of the previous year). 2. a measure of average sales UNTIL the previous week (exc. the current one) thanks in advance, Amit1.8KViews0likes10CommentsWeekly Date-Start Date and End Date
Hi All, I am trying to create weekly range column(from monday to saturday) using addtional column week start date and week end date, but then realized that the start date not started in first date of the month as well as the week and date not end in last of the month. Here the dax i am used : Start date : Week Start Date = Sheet1[Date] - WEEKDAY(Sheet1[Date],2)+1 end date: Week End Date = Sheet1[Date] - WEEKDAY(Sheet1[Date],2)+6 Basically, I want to start date always in the first day of the month basically day 1(for instance 1 september) and end date in 31 or 30 (for instance 30 september). Anyone can help with this, please also see my atatched pbix here : https://drive.google.com/file/d/143dko9boxjZuBkhxBTQQlhOiWW0t3HEP/view?usp=sharing I hope there were an expert can help, I am quite new in the Power BI.Solved1.9KViews0likes5CommentsHow to get an aggregated value for each week
Hi Guys I have a problem I am unable to solve. I am trying to get an aggregated value for the week that is monday - sunday. How am I able to aggregate it so it shows just for the last day of the week. sample table: Assuming by week is Monday - Sunday. Please I want to aggregate all quantities for each week and show it on the weekend date (Sunday of each week which is the max date) Category Date Qty Expected result a 1/3/2022 100 - a 1/4/2022 150 - a 1/5/2022 50 - a 1/6/2022 300 - a 1/7/2022 100 - a 1/8/2022 25 - a 1/9/2022 0 725Solved2.4KViews0likes4Commentscalculate value for previous week of the month
hi everyone im trying to find week over week change for weeks of the month ex. if we are now in the month of FEB2022, weeks would be: W1: 1-2 till 5-2 W2: 6-2 till 12-2 W3:13-2 till 19-2 W4: 20-2 till 26-2 W5: 27-2 till 28-2 i want to calculate the week over week change and for that i need to find the value for previous week example with data: W1: 2478 W2: 3457 W3:3359 W4:3456 W5:574 week over week change for W2 would be (3457-2478)/2478=39.5Solved2KViews0likes3Commentssort weeks by dates in the calendar
hello , im trying to create a column that sorts weeks according to dates rather than week name. ex. w1 2022 would be : january1-2022 till january7-2022 w2 would be be january8-2022 till january14-2022 w3 woud be january15-2022 till january21-2022 where W1 should always be first 7 days of the begining of the year i was trying to use weeknum function but its sorting weeks according to weekdays from Sunday till SaturdaySolved1.4KViews0likes3CommentsShow Week Data for the last 8 weeks and display the average of the 8-weekly data
Hello everyone, I need some help and I would really, really appreciate any inputs. Desired Output: Dynamically show the weekly data for the last 8 weeks (including current selected week) and then calculate 8 week average based on the current selected week. Example: If I select 3/12/2021 (Corresponds to Week 13), table will show the Sales on 3/21/21 and the weekly sales in the last 7 weeks. Sample Output: I have 2 tables Sales_Fact and dimWeek joined by Closing Week. What I did is create 8 different measures: Current Wk, Last_Wk1, Last_Wk2, Last_Wk3, Last_Wk4, Last_Wk5, Last_Wk6, Last_Wk7 Last_Wk1 = var selectedwk = max(dimWeek[Week_No]) var wk = calculate(selectedwk-1) return calculate([NB_PL_CY],all(dimWeek[Week_No]),filter(all(dimWeek),dimWeek[Week_No]=wk)) Then I created Avg_8_Wk measure that average all those 8 measures. This is the result: This shows the last 8 weeks Sales, however, I don't think this is the right way to do it and also I would like to be able to see the Week_Ending date that dynamically change instead of the measure name (Please see sample output above). Would you be able to help? Thanks so much in advance! Best, Newbie_2020Solved6.6KViews0likes2Comments