Forum Discussion
smartpug
3 years agoNew Member
Calculating values based on two tables
Hi all, I am a super beginner and have the following case: Problem: We have two tables: Products and Orders. They have a One-To-Many relationship so one Product might be in a few orders - a c...
- 3 years ago
maybe you want a measure, instead of calculated column
NewMeasure=SUMX(Products,COUNTROWS(RELATEDTABLE(orders))*Products[Price])
wdx223_Daniel
Community Champion
3 years agoif you are adding calculated column in Products table, try this code
NewColumn=COUNTROWS(RELATEDTABLE(Orders))*Products[Price]