Forum Discussion
Saxon10
Post Prodigy
2 years agoIndex and MIN value based on the two tables
Hi, I have two tables are data and report. "The data table contains the 'Area' and 'Priority' columns. The Report table contains columns such as 'Item,' 'Area,' and 'Priority'. If an item has mul...
- 2 years ago
Hi,
This problem can be solved without the second table. Use these calculated column formulas
Minimum priority number = CALCULATE(MIN(REPORT[Priority]),FILTER(REPORT,REPORT[Item]=EARLIER(REPORT[Item])))Area of minimum priority = CALCULATE(MAX(REPORT[Area]),FILTER(REPORT,REPORT[Item]=EARLIER(REPORT[Item])&&REPORT[Priority]=EARLIER(REPORT[Minimum priority number])))Hope this helps.
Ashish_Mathur
Super User
2 years agoHi,
This problem can be solved without the second table. Use these calculated column formulas
Minimum priority number = CALCULATE(MIN(REPORT[Priority]),FILTER(REPORT,REPORT[Item]=EARLIER(REPORT[Item])))Area of minimum priority = CALCULATE(MAX(REPORT[Area]),FILTER(REPORT,REPORT[Item]=EARLIER(REPORT[Item])&&REPORT[Priority]=EARLIER(REPORT[Minimum priority number])))
Hope this helps.
- Saxon102 years ago
Post Prodigy
Thanks for your reply and support.