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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I've got the following dataset. I'm trying to find a formula that would help me keep the oldest PO Age value but a distinct value in the can_clear_backorders column.
As an example the first 2 PO Numbers serve the same purpose however i would like to show only the oldest one (based on PO Age column).
Any help much appreciated.
Solved! Go to Solution.
Hi @georgec96
Please try
Max PO Age =
VAR CurrentPOAge =
MAX ( TableName[PO Age] )
VAR MaxPOAge =
CALCULATE (
MAX ( TableName[PO Age] ),
ALLEXCEPT ( TableName, TableName[Desctription] )
)
RETURN
IF ( CurrentPOAge = MaxPOAge, MaxPOAge )
Hi @tamerj1 , sorry to be a pain but this is not giving me the expected result as you can see.
Is there any way I can create maybe a new table that would give me distinct values in the column Description but keep the highest value in the PO Age column?
Hi @georgec96
Please try
Max PO Age =
CALCULATE (
MAX ( TableName[PO Age] ),
ALLEXCEPT ( TableName, TableName[Desctription] )
)
Hi @tamerj1 ,
Any idea how can i make the table visual not to duplicate the values?
It's still showing the same as before after applying formula you provided.