The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |