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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have a table called "Cycles" and i need a dax column with the value (the name) of CYCLES[Status Atual] for the earlier/maximum [FirstMatingDate] and for each CYCLES[ID&FARM]
I am trying this formula:
But it returns the me the status name with the last alfabethical order.
Can you help me with this?
Thanks in advance
Solved! Go to Solution.
HI @DBrito79,
You can try to use the following measure formula if it suitable for your requirement:
EarliestStatusAtFirstMatingDate =
VAR _lastDate =
CALCULATE (
MAX ( CYCLES[FirstMatingDate] ),
ALLSELECTED ( CYCLES ),
VALUES ( CYCLES[ID&FARM] )
)
RETURN
CALCULATE (
MAX ( CYCLES[Status Atual] ),
FILTER ( ALLSELECTED ( CYCLES ), CYCLES[FirstMatingDate] = _lastDate )
)
Regards,
Xiaoxin Sheng
HI @DBrito79,
You can try to use the following measure formula if it suitable for your requirement:
EarliestStatusAtFirstMatingDate =
VAR _lastDate =
CALCULATE (
MAX ( CYCLES[FirstMatingDate] ),
ALLSELECTED ( CYCLES ),
VALUES ( CYCLES[ID&FARM] )
)
RETURN
CALCULATE (
MAX ( CYCLES[Status Atual] ),
FILTER ( ALLSELECTED ( CYCLES ), CYCLES[FirstMatingDate] = _lastDate )
)
Regards,
Xiaoxin Sheng
It worked... Thanks a million, Sorry for the delay ansewring . Regards
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 8 | |
| 5 | |
| 3 |
| User | Count |
|---|---|
| 28 | |
| 21 | |
| 20 | |
| 18 | |
| 12 |