Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Is there a way to work with a line graph and add a vertical line which shows the current week and a label for it which says "This week", like in the picture below - so far I have it a manual line, but I would like it dynamic as weeks progress
Solved! Go to Solution.
Hola @some_analyst
Yes, you can create a constant line of the X-axis with a date returned by a measurement.
A small example is attached.
For example, create this measure that determines the start date of the week based on the TODAY() function. You can use any other logic you want to determine your desired date:
Week Start Date =
VAR TodayDate = TODAY ()
VAR Result = TodayDate - WEEKDAY ( TodayDate, 3 )
RETURN
Result
Then add a reference line of type Constant line on the X-axis, with the value set in the measure (by clicking fx).
Hola @some_analyst
Yes, you can create a constant line of the X-axis with a date returned by a measurement.
A small example is attached.
For example, create this measure that determines the start date of the week based on the TODAY() function. You can use any other logic you want to determine your desired date:
Week Start Date =
VAR TodayDate = TODAY ()
VAR Result = TodayDate - WEEKDAY ( TodayDate, 3 )
RETURN
Result
Then add a reference line of type Constant line on the X-axis, with the value set in the measure (by clicking fx).
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
72 | |
39 | |
31 | |
26 |
User | Count |
---|---|
97 | |
87 | |
43 | |
40 | |
35 |