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! It's time to submit your entry. Live 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.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 44 | |
| 34 | |
| 26 | |
| 23 |
| User | Count |
|---|---|
| 137 | |
| 118 | |
| 58 | |
| 40 | |
| 35 |