Forum Discussion
Anonymous
6 years agoNot applicable
How to use Dax to source different table in Matrix
Hi All, I have a Matrix like this, at the Supplier level, I have indicator value differs across weeks However, because the indicator value is calculated with complication, the values at...
- 6 years ago
Hi Anonymous ,
According to your screenshot, you data has a hierarchy(ID->Location->Supplier), right? Based on your sample data, please try to use the following dax(Since I don't know how you calculated the location value, I set it to sum of suppliers
Measure = IF ( ISINSCOPE ( Table2[Location] ), IF ( ISINSCOPE ( Table2[Supplier] ), SUM ( Table2[Indicator] ), CALCULATE ( SUM ( Table2[Indicator] ), FILTER ( Table2, Table2[Location] IN DISTINCT ( Table2[Location] ) ) ) ), CALCULATE ( MAX ( Table1[Indicator] ), Table1[ID] IN DISTINCT ( Table1[ID] ) ) )If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Anonymous
6 years agoNot applicable
Seems like the raw data table failed to upload, post again
v-deddai1-msft
Community Support
6 years agoHi Anonymous ,
Would you please refer to my edited reply above?
Best Regards,
Dedmon Dai