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.
I have 4 tables
logins, ConnectedUsers,FacilityCode, ProviderCode.
Basically in ConnectedUsers table i have:
Provider_Name | System_Code | Facility_Code | RegisteredUsers |
AHSE | GAYA | 10 | |
CCMS | GAYA | AA02 | 4 |
AHSE | GAYA | 6 |
logins
EventID | System_Code | Facility_Code |
01 | GAYA | AA02 |
02 | GAYA |
I have a measure that calculates logins based on event ID (count), however, I want the system to check if facility code in connectedusers table is blank then it should take system_code registered users.
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
8 | |
7 |