March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a date table in that there is one Period column and a week column. So I have created a calculated column as Period_date so getting the values as P01W1, P02W2 etc. I have show 5 weeks Period_weeks(last two weeks, current week & future two weeks) in a slicer. For example if Current week is P05W4, then in slicer I have to show P05W2,P05W3,P05W4,P06W1,P06W2. So I created one calculated column to give rank to the weeks.
This is an issue I got in one week. The text Current Week should have shown only for P05W4. but it was showing for two weeks in slicer.
Someone pls help. I am still facing this issue. Every Sunday it is showing the Current week for two weeks.
@SudipChoudhury for a period week you have to take a call. You have to use start of week or end of week and complete the week will in that period.
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],1)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],1)
use one of these to calculate period week
for comparing this week vs last week
you can have one more column
Week Rank = RANKX('Date','Date'[Week Start date],,ASC,Dense)
This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))
@amitchandak .. I don't need to create Period Week column. I already have period week column. I have to show 5 weeks of Period week names in slicer. 2 prior weeks, Current Week and 2 future weeks. And I have to show it like this:
I am creating two calculated column like this to add that text "Current Week" for current week.
Period_Week_Rank = DATEDIFF('Dim_Time_Wk'[SALE_TKT_WK_BEGIN_DT],TODAY(),WEEK).
Pd_Wk_Test = IF(Dim_Time_Wk[Period_Week_Rank]=0,Dim_Time_Wk[Period_Week]&" (Current Week)",Dim_Time_Wk[Period_Week])
Now when I am placing this Pd_Wk_Test in slicer, every Sunday when week starts the text "Current Week" remains for past week. It gets added to the Current week but it also remains added in past week. Like below case happened in one Sunday:
Is there any way, this issue can be fixed? I want it like every Sunday that text Current Week get added to the new week but that should be stay added for past weeks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |