Forum Discussion
Using Two Excel Sheet Tables as filter in sum Dax
- 5 years ago
felipevaz , Try meausre like
calculate(sum(table[value]),filter(table,table[codes] in values(codes[codes]) && table[subcode] in values(subcodes[subcodes])))
calculate(sum(table[value]),filter(table,table[codes] in allselected(codes[codes]) && table[subcode] in allselected(subcodes[subcodes])))
felipevaz , Ideally. You can join code and sub code with start table and they should filter automatically.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- felipevaz5 years ago
Helper I
save to your computer the table was loaded into the model
amitchandak I cant joining the tables cos that is costing a lot of time when refreshing....
thats why I tried to load data into data model and use dax to filter the data
I forgot to mention that I need to sum the total of value, sum the total of value of selected Code and subcode...
- amitchandak5 years ago
Super User
felipevaz , Try meausre like
calculate(sum(table[value]),filter(table,table[codes] in values(codes[codes]) && table[subcode] in values(subcodes[subcodes])))
calculate(sum(table[value]),filter(table,table[codes] in allselected(codes[codes]) && table[subcode] in allselected(subcodes[subcodes])))
- felipevaz5 years ago
Helper I
amitchandak worked like a charm! Really thank you for supporting me.