Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
Im struggling with what seems like it should be very simple. I have the below chart that shows insurance customers segmented by premium bands. I need to add a filter to this so that it includes only customers who have 1 policy.
I have verified the total accounts and total placements figures are correct however if I add the numbers in the chart they total approx 1,500 which is obviously incorrect.
There can be multiple transactions (and so rows of data) per policy so I believe it is calculating based on transactions so need to find a way to group transactions into a single policy. I've tried versions of summarize, groupby, true/false but can't seem to get it right.
My data model has a transaction fact table and policy type dim table connected by a one to many relationship.
Any guidance would be highly appreciated.
Solved! Go to Solution.
Hi @MarkEden ,
You can count how many policy a customer has using a formula similar to below.
=
CALCULATE (
DISTINCTCOUNT ( 'table'[policy] ),
ALLEXCEPT ( 'table', 'table'[customer] )
)
Instead of counting the transactions, count the unique policy.
Proud to be a Super User!
Hi @MarkEden ,
You can count how many policy a customer has using a formula similar to below.
=
CALCULATE (
DISTINCTCOUNT ( 'table'[policy] ),
ALLEXCEPT ( 'table', 'table'[customer] )
)
Instead of counting the transactions, count the unique policy.
Proud to be a Super User!
@danextian thank you. I needed to tweak it slightly to fit the x axis category but it got it working. Appreciate your help
User | Count |
---|---|
98 | |
89 | |
82 | |
70 | |
67 |
User | Count |
---|---|
115 | |
104 | |
101 | |
72 | |
64 |