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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi there,
I am plotting a weekly line chart with daily data. I am trying to not show the latest week's data point if the week is incomplete.
My current solution does not work
Adm WK CY = VAR x = year( LASTDATE( MAIN_COR[DATE])) VAR z = WEEKNUM( LASTDATE(MTDdate[Date]), 1) Return CALCULATE( sum( MAIN_COR[ADM]),MAIN_COR[Attribute] = "Actual", MAIN_COR[Year] = x, MAIN_COR[Wkno] < z)
However, if I replace "z" with the current week number itself, "12", it works.
Where am I going wrong here?
@Anonymous have you returned(printed) all your variables to test you are getting what you expecting?
Proud to be a Super User!
@vanessafvg Yes if I return the variable z, it gives me "12", the current week number.
@Anonymous any chance you can share your pbix?
Proud to be a Super User!
I'm afraid I can't, perhaps can you suggest another way to go about doing it? I have included a picture of the line chart I am trying to fix for illustration. Adm WK CY for week 12 is irregular because the week is incomplete. Therefore I want to remove that point.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 26 |