Forum Discussion
KaZeK
3 years agoFrequent Visitor
Assigning range to value from not connected, different table
Dear Community, I have a doubt and I do not have any idea how to handle it. Basically I have two tables, one of them contains thousends of raws with unique name and specific value: name1 ...
- 3 years ago
Hi KaZeK ,
Please try following DAX:
RangeName = MAXX( FILTER( 'SR30_periods_adj', 'SR30_periods_adj'[SR30PeriodMinValue] <= EARLIER('StockList'[SR30]) && 'SR30_periods_adj'[SR30PeriodMaxValue] >= EARLIER('StockList'[SR30])), 'SR30_periods_adj'[SR30PeriodName] )I think this is the result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
KaZeK
3 years agoFrequent Visitor
Hello,
I am sharing file with data. The main question is how to define range for SR30 value located in StockList table, where ranges are calculated and provided in second table - SR30_periods_adj (tables are not connected), and finally how to copy range name - SR30PeriodName - from second table - SR30_periods_adj to table StockList.
https://drive.google.com/file/d/1H9x2V7dxnPRqr4FtY2ojMAqCu_7ks4cw/view?usp=sharing
Regards
KaZeK