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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have username and sale_no column in my user table. Now I want find max of sales_no for each user. In import mode, I have created calculate column as:
=CALCULATE (
MAX ( user[sales_no] ),
ALLEXCEPT ('user',user[full_username]
))
The same thing I want to achieve in direct query. But I came to know in direct query, for calculated column we cannot use calculate function. Is there any way to achieve same via measure or calculated column in direct query.
Thanks in advance.
Solved! Go to Solution.
@Anonymous , This can work as a new measure.
And refer to these how to use max value
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
@Anonymous , This can work as a new measure.
And refer to these how to use max value
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.