Forum Discussion
Calculate closest to?..
- 10 years ago
Hi rynoh17,
Yes, if month column didn't get single value, create another filter for the month:
Mostrelated = if(ABS(Sheet1[Guidance Price]-Sheet1[Sell Price])= MinX(
filter(Sheet1,
And(Sheet1[Item]=earlier(Sheet1[Item]),
Sheet1[month]=earlier(Sheet1[Month])),
ABS(Sheet1[Guidance Price]-Sheet1[Sell Price])
),
Sheet1[Guidance color])
Check this out.
If any further assistance needed, please feel free to post back.
Regards
You could do it almost exactly the same way in Power BI and the formulas would pretty much be the same.
- Anonymous10 years agoNot applicable
I can't do it that way when it is flat though.. Do I unflatten, or is there another way?
- Greg_Deckler10 years ago
Community Champion
Can you post some fake sample data? There's a solution, but it depends on the data and it is difficult to visualize what your data looks like.
- Anonymous10 years agoNot applicable