Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
dshah12
Helper II
Helper II

Calculate the Latest Date with respect to the Application Ref Number

I want to Calculate the Latest Date with respect to the Application Ref Number and App no is coming from another table 
I tried 

Max_BatchDate = CALCULATE(
    MAX('Purchase Order Detail'[Batch Date]),
    ALLEXCEPT('Client Program Detail', 'Client Program Detail'[Application Reference Number])
)
but I am getting the maximumm date of the entire batch date column I want it wrt Appl no .Because the data is coming from the Direct Query I am not able to use the LASTDATE
1 ACCEPTED SOLUTION
Kishore_KVN
Super User
Super User

Hello @dshah12 , do you have relation between Purchase Order Detail table and Client Program Detail table. If it is there and still it is not working, please change cross filtering between these two tables as 'both' direction so that it will work. Your measure is right. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

1 REPLY 1
Kishore_KVN
Super User
Super User

Hello @dshah12 , do you have relation between Purchase Order Detail table and Client Program Detail table. If it is there and still it is not working, please change cross filtering between these two tables as 'both' direction so that it will work. Your measure is right. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors