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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
sshiny
Helper II
Helper II

How To

I need a solution, if the order count is 2 or more, I need to see the latest order date.

sshiny_0-1658721707590.png

 

3 REPLIES 3
Anonymous
Not applicable

Hi  @sshiny

Is this result what you want?

This is the original data:

vmengzhumsft_0-1658912935963.png

After I apply the measure( if the order count is 2 or more, appear the latest order date):

 

vmengzhumsft_1-1658912935967.png

If it is what you want, you can try this measure:

maxdate = var _max= MAXX(ALL('Table'[order date]),'Table'[order date])

return IF(SELECTEDVALUE('Table'[order counts])>=2, _max,SELECTEDVALUE('Table'[order date]))

 

 

Here is my test file that you can use to help understand

Best regards,

Community Support Team Selina zhu

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

amitchandak
Super User
Super User

@sshiny , You can try approach I discussed here

https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak PFA the data sample. In the last order date , I need a single value-the last order date for the particular tag

sshiny_0-1659513944479.png

 

 

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.