Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, I have chart that shows holiday hours booked by weeks.
I want to highlight current week using the coditional formatting option.
But the only way I see is by writing measure that checks if it is current week
I had something similar done for check if anyone is on holiday today, but I cant work out how to change it to check for this week instead of today.
Solved! Go to Solution.
@Justas4478 - Try this:
VAR _StartOfWeek = TODAY() - WEEKDAY( TODAY(), 2 ) + 1
RETURN
IF(MAX('Table'[Date Column])= _StartOfWeek,1,0)
It will proivde a 1 if your date column matches the _StartOfWeek variable.
If this helps you, please accept as the solution so others with the same issue can find the answer!
@Justas4478 - Try this:
VAR _StartOfWeek = TODAY() - WEEKDAY( TODAY(), 2 ) + 1
RETURN
IF(MAX('Table'[Date Column])= _StartOfWeek,1,0)
It will proivde a 1 if your date column matches the _StartOfWeek variable.
If this helps you, please accept as the solution so others with the same issue can find the answer!
I tried it and it doesnt seam to work when I put it in conditional rule.
If I change it to 1 instead of 0 it the colors all dates
@Justas4478 - The DAX is correct, but you cannot apply it to the Values of the axis lables, I suggest you apply it to the Column colour instead. This will highlight the current week in a better way:
Yea that worked, thanks
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |