week
8 TopicsError: Comparison operations don't support comparing values type Text with Values of Type Number
Hi, I'm new to DAX and need some help, I'm creating a measure in a tabular cube in SSAS. I need to retreive the LastYearLastWeek data from x column: LastYearLastWeek:= CALCULATE([x], FILTER(ALL(Time), Time[WeekNumber] = SELECTEDVALUE(Time[WeekNumber]) -1 && Time[Year] = SELECTEDVALUE(Time[Year])-1)) But I get this error in the syntax: comparison operations don't support comparing values type Text with Values of Type Number. Considering using VALUE or FORMAT functions to convert one of the values. Fields used: WeekNumber and Year from Time table are whole numbers. It doesn't really make sense to me, any tips on how to fix it? Also maybe there is a better way to get LastWeekLastYear, do you know of any? ThanksSolved1.4KViews0likes2CommentsChart with last 4 weeks' data and secondary chart with just last week's data
Hello! This is my first forum post so please be understanding if I post too much info, I want to be 'easy' to help 🙂 I am trying to show 4 weeks of data in a chart, which is easy, but on the same power bi page in a different chart, show the most recent week worth of data too. I have the data automatically uploading from a database source. The data I have currently looks like this in my query, with the current chart showing the equipment name on x axis, and the OEE percentages on Y. There is a slider that is linked to Shift ISO column so that the last 4 weeks of data can be displayed. Is there any way to make a chart that only shows the last week's worth of data based on the time of accessing the power bi? thank you!Solved541Views0likes1CommentCreating Week Over Week View
Hi all! I have a new measure that I am using this code on: Last Week Sales = CALCULATE(SUM('DayfileSummary'[NetSales]),DATESINPERIOD(DayfileSummary[DF_BusinessDay],SELECTEDVALUE(DayfileSummary[DF_BusinessDay]),-7, DAY)) Essentially what the column needs to produce is a week prior to the selected date in a slicer. I need the total so I can do a change % column but I cant seem to get the Column to show the week before it always shows same dateSolved1.2KViews0likes3CommentsNeed a formula to produce overall average per week of month
It's Monday and the answer is probably as simple as 1 + 1 = 5 (ha ha) but I can't figure it out: In my Date table, I have a column with the Week of the Month (according to how we break them down) for each day, I have the total number of months for which I have data for each of those weeks and sum count of all the tickets for each of those week blocks: I need a formula that will give me the AVERAGE for each of those week blocks vs. the Sum of them. So, for example, instead of seeing 42,298 for W1, I'd want to see 7,049. These will ultimately be put on line axis of a cluster chart along with other data (the counts for each week block of the current month and previous month so we can compare how the last 2 months compare with the cumulative average for all months). Note that depending on the day of the month, not every week-block will be based on the same number of months (see W4). What totally obvious (probably) formula would I use to produce that? If you are willing to go one step further, ultimately what I'll need are the weekly block average that will still respect any filters/slicers applied to it EXCEPT my selected date range filter. The other data that is in the clustered chart must still respect the date filters applied...just the line for this data should ignore that (so I can't use the Edit Interactions on it).Solved454Views0likes1Commentcalculate 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.5Solved2KViews0likes3CommentsDynamic 13 weeks based on WEEK SELECTION [DD-MM-YY]
Hi Power BI Community I'm trying to create a dynamic 13 weeks selection based on week DD-MM-YY which should dynamically populate 13 weeks data instead of individual selection. I check the earlier solved DAX query which is mostly based on 13-weeks selection. https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123. Thanks [@AmitChandak] Currently, I'm using this DAX which is partially doing the job, where I've to select the whole 13 weeks to achieve the desired output, instead, I need one single selection and it should populate the previous 13 weeks data before that without selecting prior 13 week value in the slicer. In my use case, I'm using Line and Clustered Column Chart that should dynamically change e.g. when I select Week Commencing e.g. 13-12-2020 (Please note I'm using DD-MM-YY not Week number), it should pull data from 13-12-2020 to 20-09-2020 or if I select 20-12-2020 the data range should be till 27-09-2020 so that I can see how my last 13 sales are doing. As shown in sample datasets and Line https://drive.google.com/file/d/1xk1xlvWiFcGTUH_8X_1R5OwwARVm11NP/view?usp=sharing and Clustered Columncharts. I've attached sample data, DATE table, and DAX measure formula Please help. Many Thanks4KViews0likes1Comment