Forum Discussion
Many-to-many connection between tables
- 6 years ago
Hi Yura_greenit,
Would you please try to create a measure for value:
Value2 = DIVIDE ( SUM ( 'Land Bank'[Field area] ), CALCULATE ( SUM ( 'Land Bank'[Field area] ), FILTER ( ALL ( 'Land Bank' ), 'Land Bank'[Actual Crops] IN DISTINCT ( 'Cash Flow'[Actual Crops] ) ) ) ) * SUM ( 'Cash Flow'[Value] )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
Yura_greenit can you provide sample data and expected output. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- Yura_greenit6 years agoFrequent Visitor
Sorry, attaching the attachment file and test a small circuit:
There are actually a lot more tables, but there are two basic ones. The problem is I can't relate them.
- Yura_greenit6 years agoFrequent Visitor
- v-deddai1-msft6 years ago
Community Support
Hi Yura_greenit,
Would you please try to create a measure for value:
Value2 = DIVIDE ( SUM ( 'Land Bank'[Field area] ), CALCULATE ( SUM ( 'Land Bank'[Field area] ), FILTER ( ALL ( 'Land Bank' ), 'Land Bank'[Actual Crops] IN DISTINCT ( 'Cash Flow'[Actual Crops] ) ) ) ) * SUM ( 'Cash Flow'[Value] )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