Forum Discussion
PBIUWO
7 years agoHelper III
Count rows in relation to another column?
I have 1 table that has the column, Order Number, Item Code, and Shipping ID. I am trying to get the count of unique Shipping ID to the Order Number. The data: Hoping to create a col...
- 7 years ago
Hi PBIUWO ,
To create relationship between tables as below.
Then we can create a calcualted column to get the result we need.
count of shipping id = CALCULATE ( DISTINCTCOUNT ( data[Shipping ID] ), RELATEDTABLE ( data ) )
v-frfei-msft
7 years agoCommunity Support
Hi PBIUWO ,
To create relationship between tables as below.
Then we can create a calcualted column to get the result we need.
count of shipping id = CALCULATE ( DISTINCTCOUNT ( data[Shipping ID] ), RELATEDTABLE ( data ) )