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
Here's a strange thing:
This is my formula for the Year-week of the most recent order from the clients:
However, just today I found that it became like this:
When I tried to debug and changed the return to --isblank(most_recent_week), I found it's like this:
Why??? Why does it have all the values and then shows as blank??
Hi @Anonymous
In your formula , when [most_recent_week] is null , return “” , so you need check the value of [most_recent_week] . If you still have doubts , you can provide your pbix file to us, it will help us to deal with your problem easier .
Best Regard
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , just try this
calculate(MAXX(allselected(Sales),Sales[Year_Week]))
if you need data of max week use this in visual level filter or
create measure like
var _max = calculate(MAXX(allselected(Sales),Sales[Year_Week]))
return
calculate(sum(Sales[AMount]), filter(Sales, Sales[Year_Week] =_max) )
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi,
Thanks for your response. It doesn't work and give me this:
It's year-week because var_max is what i wanted to return
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 |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |