Calculate Sales This week and Last Week using a Button in PowerBI | MI Tutorials

  Рет қаралды 20,885

MITutorials

MITutorials

Күн бұрын

Calculate Sales This week and Last Week using a Button in PowerBI | MI Tutorials
Watch the Tutorial to know How to Create a Calendar Table: • How to Create Calendar...
Code to Create Calendar:
Calendar =
VAR MinDate = MIN('50000 Sales Records'[Order Date])
Var MaxDate = Max('50000 Sales Records'[Order Date])
VAR Days = CALENDAR ( MinDate, MaxDate )
RETURN ADDCOLUMNS (
Days,
"Year", YEAR ( [Date] ),
"Month Number", MONTH ( [Date] ),
"Month", FORMAT ( [Date], "mmmm" ),
"Year Month Number", YEAR ( [Date] ) * 12 + MONTH ( [Date] ) - 1,
"Year Month", FORMAT ( [Date], "mmm yy" ),
"Week Number", WEEKNUM ( [Date] ),
"Week Number and Year", "W" & WEEKNUM ( [Date] ) & " " & YEAR ( [Date] ),
"WeekYearNumber", YEAR ( [Date] ) & 100 + WEEKNUM ( [Date] )
)

Пікірлер: 6
@valiabis
@valiabis 2 жыл бұрын
Hello. This tutorial is almost exactly what i was looking for. What if i want to create this dax for the last closed month and see also how the previous 2-3 months of the last closed month performed? For example, in December I have the data until November end and i want to go back 2-3 months to check the progress? In this case the today will not work as there are no data for the month of December. Thank you!
@lalitkaushik1812
@lalitkaushik1812 Жыл бұрын
Please show variance week wise and age also great help
@SundarRaj-bm8lf
@SundarRaj-bm8lf 11 ай бұрын
Thanks, it worked
@gabrielabernal3805
@gabrielabernal3805 Жыл бұрын
Great tutorial! Thank you
@arpitsawant1306
@arpitsawant1306 2 жыл бұрын
Hi - I need current week vs last 6 weeks as an slicer filter so that anyone can easily select and view the data as per selection My week starts from Friday to Thursday Please assist
@nagarjunaatla1619
@nagarjunaatla1619 Ай бұрын
please use the '15' week code Current Week Sales = CALCULATE( SUM('Fact Table'[Sales]), WEEKNUM('Calendar ddd'[Date],15 ) = WEEKNUM(TODAY(), 1) && YEAR('Calendar ddd'[Date]) = YEAR(TODAY()) )
Last N Weeks Comparisons (DAX Tutorial) (Last 3 weeks, Last 8 weeks,... Last N weeks)
7:49
Calculate Previous Weeks Sales - Advanced DAX in Power BI
12:09
Enterprise DNA
Рет қаралды 127 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,9 МЛН
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Calculate Week of the Month in Power BI
8:30
Goodly
Рет қаралды 23 М.
Week Over Week in Power BI | Power BI tutorial for beginners
14:04
The Hima Bindu
Рет қаралды 33 М.
DAX Fridays! #124: Weekly time intelligence in Power BI
9:28
Show last 6 months based on user single slicer selection
20:04
Oh my...! You DIDN'T KNOW this about WEEKS?!
15:30
How to Power BI
Рет қаралды 57 М.