wow
4 Topicsprevious week calculation repeating over empty dates weekly to daily relationship
I have the below data model. Where the fact table is weekly and calendar is daily. When I calculate the previous week value it adds all the dates from the calendar rathen than keeping only dates in the fact table. PREVIOUSWEEK Value WDT = VAR _Today = SELECTEDVALUE(Lookup_Calendar[Date]) VAR _WOT = WEEKNUM( _Today, 1 ) -- Number 2 determines that the week begins on Monday. VAR _LW = _WOT - 1 RETURN CALCULATE( SUM( Data[Units]), FILTER( ALLSELECTED( Lookup_Calendar ), Lookup_Calendar[Week Of Year] = _LW && Lookup_Calendar[Year] = YEAR(_Today ) ) ) pbixfileSolved2KViews0likes9CommentsHelp Needed! Week over Week revenue calculation "group by" categorical data
I am trying to figure out week over week calculation. I searched online and found DAX measure. I created columns for Year, WeekDay, and WeekNum. what I am using is like below: WoW Rev OTB = SUM ( 'Table'[sales] ) - CALCULATE ( SUM ( 'Table'[sales] ), FILTER ( ALL ( 'table' ), 'table'[Year] = MAX ( 'table'[Year] ) && 'table'[WeekNumber] = MAX ('table'[WeekNumber]) - 1 && 'table'[WeekDay] = MAX ( 'table'[WeekDay] ) ) ) The result turned very well, I got the total number for week over week revenue by different as of dates. It looks like the picture below: However, when I clicked slicers with categorical data, trying to see week over week revenue by filters, all the numbers showed negative: Eventually I wanted to present week over week in a column chart by As of Date. I have tried multiple measures from Power BI Community, but all the measures couldn't work when values apply on categorical data. I'm wondering if the measure should calculate by row, but mine is by column. Does anyone be able to help me with the week over week formula? Thank you in advance! Here is the pbix file without sensitive data: test-laughing chicken.pbix1.2KViews0likes2CommentsWeek over Week sales calculation
I am trying to figure out week over week calculation. I searched online and found DAX measure. I created columns for Year, WeekDay, and WeekNum. what I am using is like below: WoW Rev OTB = SUM ( 'Table'[sales on the book] ) - CALCULATE ( SUM ( 'Table'[sales on the book] ), FILTER ( ALL ( 'table' ), 'table'[Year] = MAX ( 'table'[Year] ) && 'table'[WeekNumber] = MAX ('table'[WeekNumber]) - 1 && 'table'[WeekDay] = MAX ( 'table'[WeekDay] ) ) ) The result turned very well, I got the total number for week over week sales. However, when I tried to apply on different region or destinations or choose other status, the week over week sales numbers showed all negative numbers which doesn't seem correct. (This is the screenshot for WoW sales without any filters) (After I selected "Established" in status slicer, all the numbers turn into negative. Same thing would happen if I selected product market slicer.) Can anyone help me how to apply week over week sales on categories? Thank you in advance!1.9KViews0likes4CommentsWeek over Week change for the same document
Hello guys! I have a table called "OPEN POs" that looks like this: WeekNum Supplier PO number Payment term 33 A 158 30 days 33 C 105 60 days 33 Y 469 30 days 33 A 422 90 days 33 Y 789 75 days 33 U 156 120 days 33 Y 111 45 days 34 A 158 60 days 34 C 105 60 days 34 T 88 90 days 34 Z 156 120 days 34 U 777 120 days 34 B 879 45 days 34 Y 789 45 days 34 U 156 120 days I'm trying to build a matrix like this: Week 34 PO number Supplier From To 158 A 30 days 60 days 789 Y 75 days 45 days The idea is to show the "PO numbers" that had its "Payment term" changed from one week to another. The variation always needs to be from the current week (that will be selected on the slicer) versus the previous week. Can you guys please help me on this one? mahoneypat ideas? 😁 😬 Thank you for the support! 🙂Solved1.9KViews0likes7Comments