Forum Discussion
Calculated column groupby
- Anonymous1 year ago
Hi, jostnachs
Based on your information, I create sample tables:
Policy Table
Producer Broker Table
Production Table
Then create a new calculated column, try the following DAX expression:
PolicyShareStatus1 = CALCULATE ( COUNT ( 'Producer Broker'[PrBrName] ), FILTER ( ALL ( 'Producer Broker' ), 'Producer Broker'[PolicyID] = EARLIER ( 'Policy'[PolicyID]) ) )Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, jostnachs
Based on your information, I create sample tables:
Policy Table
Producer Broker Table
Production Table
Then create a new calculated column, try the following DAX expression:
PolicyShareStatus1 =
CALCULATE (
COUNT ( 'Producer Broker'[PrBrName] ),
FILTER (
ALL ( 'Producer Broker' ),
'Producer Broker'[PolicyID] = EARLIER ( 'Policy'[PolicyID])
)
)
Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.