Forum Discussion
umutkaya79
2 years agoHelper I
Getting a value from a second table by filtering from the first table
Hi, I have 2 tables : 1)'Exposure - All' and 2)'tbExtractFMTenant'. 1)'Exposure - All' has columns : 'exposure_analysis_group' and 'tenant_name'. Every 'exposure_analysis_group' has a specifi...
amitchandak
2 years agoSuper User
umutkaya79 , Try like
Margin =
VAR SelectedGroup = values('Exposure - All'[exposure_analysis_group])
RETURN
CALCULATE(
MAX('tbExtractFMTenant'[trend_query_margin]),
FILTER('tbExtractFMTenant', 'tbExtractFMTenant'[tenant_name] in SelectedGroup)
)
of exploring treatas
https://docs.microsoft.com/en-us/dax/treatas-function
https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/