Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have this meassure: Week Start Date = BASE1415[FinActTran]-WEEKDAY(BASE1415[FinActTran],2) +1
that is generating the start week date from a specific date for example for example Jun 6, 2022, so now I need to take 2 weeks, i.e:
Selecting Jun 6, 2022 -> Chart should show data of the week Jun 6, 2022 and Jun 13, 2022
Any idea?
Solved! Go to Solution.
Hi, @Anonymous ;
You could create a flag measure as follows:
flag =
IF (
DATEDIFF ( MAX ( 'Date'[Date] ), MAX ( 'Table'[Date] ), WEEK ) = 0
&& MAX ( 'Table'[Date] ) >= MAX ( 'Date'[Date] ),
1,
IF (
DATEDIFF ( MAX ( 'Date'[Date] ), MAX ( 'Table'[Date] ), WEEK ) = 1
&& WEEKDAY ( MAX ( 'Table'[Date] ), 1 ) <= WEEKDAY ( MAX ( 'Date'[Date] ), 1 ),
1,
0
)
)
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous ;
You could create a flag measure as follows:
flag =
IF (
DATEDIFF ( MAX ( 'Date'[Date] ), MAX ( 'Table'[Date] ), WEEK ) = 0
&& MAX ( 'Table'[Date] ) >= MAX ( 'Date'[Date] ),
1,
IF (
DATEDIFF ( MAX ( 'Date'[Date] ), MAX ( 'Table'[Date] ), WEEK ) = 1
&& WEEKDAY ( MAX ( 'Table'[Date] ), 1 ) <= WEEKDAY ( MAX ( 'Date'[Date] ), 1 ),
1,
0
)
)
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Check this link, might be helpful:
https://www.vahiddm.com/post/weekly-time-intelligence-dax
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn | Twitter | Blog | YouTube
FIFA World Cup - Medal Records
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 40 | |
| 21 | |
| 18 |