Тёмный
No video :(

Set Date Slicer by Default to Current Week (+ PL 300 Question) 

Dance-Sing with Data Projects
Подписаться 1,1 тыс.
Просмотров 924
50% 1

📊My Video Content Website
learnwithritesh.graphy.com
📊My Official Blog Website
dancesingwithdata.com
#powerbi
DAX Question on PL 300
Here's the scenario: I've set up a "Date" table in Power BI that spans from January 1, 2000, to January 1, 2030. Now, what I'm aiming for is to have a date slicer or filter on my dashboard that automatically defaults to the current week, meaning from the first day of the week through the last. For instance, today is March 15, 2024, so ideally, the slicer should default to March 11, 2024, through March 17, 2024.
A. Create a Column week number =
var _number=WEEKNUM('Calendar Table'[Date])
var _today=WEEKNUM(TODAY())
return SWITCH(TRUE(),_number=_today,"Current","Other Weeks")
B. Create a Measure as week number =
var _number=WEEKDAY('Calendar Table'[Date])
var _today=WEEKNUM(TODAY())
return SWITCH(TRUE(),_number=_today,"Current","Other Weeks")
C. Create a Measure week number =
var _number=WEEKNUM('Calendar Table'[Date])
var _today=DATEADD (TODAY(),1,1)
return SWITCH(TRUE(),_number=_today,"Current","Other Weeks")
D. Create a Column as week number =
var _number=WEEKNUM('Calendar Table'[Date])
var _today=WEEKNUM(TODAY())
return SWITCH(TRUE(),_number=_today,"Current","Other Weeks")
ANSWER IS A

Опубликовано:

 

17 мар 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@dancesingwithdataprojects
@dancesingwithdataprojects 4 месяца назад
DAX Question on PL 300 Here's the scenario: I've set up a "Date" table in Power BI that spans from January 1, 2000, to January 1, 2030. Now, what I'm aiming for is to have a date slicer or filter on my dashboard that automatically defaults to the current week, meaning from the first day of the week through the last. For instance, today is March 15, 2024, so ideally, the slicer should default to March 11, 2024, through March 17, 2024. A. Create a Column week number = var _number=WEEKNUM('Calendar Table'[Date]) var _today=WEEKNUM(TODAY()) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") B. Create a Measure as week number = var _number=WEEKDAY('Calendar Table'[Date]) var _today=WEEKNUM(TODAY()) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") C. Create a Measure week number = var _number=WEEKNUM('Calendar Table'[Date]) var _today=DATEADD (TODAY(),1,1) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") D. Create a Column as week number = var _number=WEEKNUM('Calendar Table'[Date]) var _today=WEEKNUM(TODAY()) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") ANSWER IS A
@politempofu
@politempofu 3 месяца назад
Very clear and concise explanation. Many thanks!
@dancesingwithdataprojects
@dancesingwithdataprojects 2 месяца назад
Glad it was helpful!
@Sirigineedi_Navann
@Sirigineedi_Navann 4 месяца назад
Really nice bro Hope you make more videos 😊
@dancesingwithdataprojects
@dancesingwithdataprojects 4 месяца назад
Yes, I will,Thanks
@dancesingwithdataprojects
@dancesingwithdataprojects 4 месяца назад
DAX Question on PL 300 Here's the scenario: I've set up a "Date" table in Power BI that spans from January 1, 2000, to January 1, 2030. Now, what I'm aiming for is to have a date slicer or filter on my dashboard that automatically defaults to the current week, meaning from the first day of the week through the last. For instance, today is March 15, 2024, so ideally, the slicer should default to March 11, 2024, through March 17, 2024. A. Create a Column week number = var _number=WEEKNUM('Calendar Table'[Date]) var _today=WEEKNUM(TODAY()) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") B. Create a Measure as week number = var _number=WEEKDAY('Calendar Table'[Date]) var _today=WEEKNUM(TODAY()) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") C. Create a Measure week number = var _number=WEEKNUM('Calendar Table'[Date]) var _today=DATEADD (TODAY(),1,1) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") D. Create a Column as week number = var _number=WEEKNUM('Calendar Table'[Date]) var _today=WEEKNUM(TODAY()) return SWITCH(TRUE(),_number=_today,"Current","Other Weeks") ANSWER IS A
@arfanislamabir
@arfanislamabir 25 дней назад
what should be the logic if i want to get day(today())
Далее
OR Conditions with Power BI Slicers
6:35
Просмотров 102
Schoolboy - Часть 2
00:12
Просмотров 5 млн
Symmetrical face⁉️🤔 #beauty
00:15
Просмотров 3,6 млн
What's New in Tableau 2024.1
5:44
Просмотров 7 тыс.