This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I need a solution, if the order count is 2 or more, I need to see the latest order date.
Hi @sshiny
Is this result what you want?
This is the original data:
After I apply the measure( if the order count is 2 or more, appear the latest order date):
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
@sshiny , You can try approach I discussed here
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0
@amitchandak PFA the data sample. In the last order date , I need a single value-the last order date for the particular tag
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |