Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
HI @Anonymous,
You can try to create a calculated column with following formulas to show the current week ranges that include year start/end checkings:
Weekbreakdown =
VAR sWeek =
[Date] - WEEKDAY ( [Date], 1 ) + 1
RETURN
IF (
WEEKNUM ( [Date], 1 ) <> 1
&& WEEKNUM ( [Date], 1 ) <> WEEKNUM ( DATE ( YEAR ( [Date] ), 12, 31 ), 1 ),
sWeek & "-" & sWeek + 6,
IF (
WEEKNUM ( [Date], 1 ) = 1,
DATE ( YEAR ( [Date] ), 1, 1 ) & "-" & sWeek + 6,
sWeek & "-"
& DATE ( YEAR ( [Date] ), 12, 31 )
)
)
Regards,
Xiaoxin Sheng
This is the DAX i used for week break down but its Blank.
I also tried this DAX
If you have a date calendar, then you can just drag both fields over to a table and it should show the dates between. Depending on the type of visual you are using (e.g. matrix), there may be an option to show the +/- buttons under formatting.
This is exactly what i want to see. But what DAX did you use for the WeekDateRange.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
84 | |
73 | |
49 |
User | Count |
---|---|
142 | |
133 | |
110 | |
68 | |
55 |