Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have 2 tables having 1 to many relationship with the ref2per table.
I' am trying to get a matrix something like below:
name | SAP | PCS | EventBrite |
SAP | 1 | ||
PCS | 1 | ||
EventBrite | 1 | 1 |
SAP and EventBrite has count 1 since person id 1 is shared between them. Same applies on the other way round. Since person id 2 has only one reference, the value is 1 for matrix EventBrite to EventBrite.
Just using the UI I'am getting the below result.
I'am still a rookie with the DAX commands, so any thoughts on how the required result can be achieved.
Thanks
Rakesh
Solved! Go to Solution.
Hi @rakesh-k01,
You can create calculated columns in ref2per table like below:
Name = RELATED('ref_table'[name])
Name(update) = var t=CALCULATE(MAX('ref2per'[ref_source_system_id]),ALLEXCEPT(ref2per,'ref2per'[personal_id]))
return
IF('ref2per'[ref_source_system_id]<> t,CALCULATE(MIN('ref2per'[Name]),ALLEXCEPT(ref2per,'ref2per'[personal_id])),
CALCULATE(MAX('ref2per'[Name]),ALLEXCEPT(ref2per,'ref2per'[personal_id])))
Best Regards,
Qiuyun Yu
Hi @rakesh-k01,
You can create calculated columns in ref2per table like below:
Name = RELATED('ref_table'[name])
Name(update) = var t=CALCULATE(MAX('ref2per'[ref_source_system_id]),ALLEXCEPT(ref2per,'ref2per'[personal_id]))
return
IF('ref2per'[ref_source_system_id]<> t,CALCULATE(MIN('ref2per'[Name]),ALLEXCEPT(ref2per,'ref2per'[personal_id])),
CALCULATE(MAX('ref2per'[Name]),ALLEXCEPT(ref2per,'ref2per'[personal_id])))
Best Regards,
Qiuyun Yu
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |