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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sshiny
Helper II
Helper II

To find "Last Date" based on a condition

Need a measure to calculate the "order date" after the "missing since" date. Currently, I am using MAXX function-

Last Order Date = MAXX(FILTER('Tag Usage Fact','Tag Usage Fact'[Tag ID]='Consignment Fact'[Tag ID] && 'Tag Usage Fact'[Order Date]>'Consignment Fact'[Missing Since] ),'Tag Usage Fact'[Order Date])
 
I need to avoid the below occurence in the report-where the last order date is less than the missing since date
 
sshiny_0-1661169653755.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi  @sshiny ,

 

What is the relationship between the two tables of Tagusagh Fakt and 'Consigement Fakt'

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

sshiny
Helper II
Helper II

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.