The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am working with Two tables. First table is a Members table with Member# and Plan Name. Second Table has Plan Name and Benefit Name. Each member can have only one plan, but each plan can have many benefits. However, some benefits are a part of multiple Plans. I need a distinct count of members for each benefit. Suggestions?
Hi @Anonymous,
Can you please share some dummy data with a similar data structure and expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi,
In the second table, in the Plan Name column, there should only be unique entries. Create a relationship from the Plan Name column of Table1 to the Plan Name column of Table2. To your visual, drag Benefit Name from Table2 and write this measure
Members = distinctcount('Table1'[Member#])
If this does not help, then share some data of both tables (in a forma that can be pasted in an MS Excel file) and show the expected result.
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
28 |
User | Count |
---|---|
106 | |
98 | |
55 | |
49 | |
48 |