Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
can anyone point to me where am i wrong?
i can't seems to get the correct percentage :C
any idea how to share files for others to help troubleshoot?
Solved! Go to Solution.
Hi @Anonymous ,
Due to I don't know your data model, here I will give you some suggestions.
Count =
IF (
HASONEVALUE ( 'TableName'[Column in Matrix Column] ),
DIVIDE (
DISTINCTCOUNT ( 'UCS_Appointment_Data'[a_centerclientid] ),
SUM ( 'Enrollment_Numbers'[Enrollment Numbers (including Part time and fill time courses] )
),
DIVIDE (
CALCULATE (
DISTINCTCOUNT ( 'UCS_Appointment_Data'[a_centerclientid] ),
FILTER (
ALL ( UCS_Appointment_Data ),
UCS_Appointment_Data[Type of Status] = MAX ( 'TableName'[Column in Matrix Row] )
)
),
CALCULATE (
SUM ( 'Enrollment_Numbers'[Enrollment Numbers (including Part time and fill time courses] ),
FILTER (
ALL ( 'Enrollment_Numbers' ),
'Enrollment_Numbers'[Type of Status] = MAX ( 'TableName'[Column in Matrix Row] )
)
)
)
)
If this reply still couldn't help you solve your issue, please share a sample file with me.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Maybe it's not working due to row/filter context.
Try this:
Measure =
VAR UCS = DISTINCTCOUNT('UCS_Appointment_Data'[a_centerclientid])
VAR Enrollment = SUM('Enrollment_Numbers'[Enrollment Numbers (including Part time and fill time courses])
return DIVIDE(UCS, Enrollment)
Obs.: Please, spell check the names of tables and columns 'cause I may have misspelled something.
Thanks for the prompt reply!!!
it yield the same results.
i think i know what is the error, but i cannot seem to solve it.
the denominator is always fixed. Any idea how to solve this ?
Now it looks you'll need to fix the relationship between tables.
I think maybe the field that contains the data "2020/2021, 2021/2022, 2022/2023"... can't find a relationship beteween both tables.
In my models, when I have a situation like that I find useful to create a composite key on both tables e create a relationship using this composite key.
i managed to do up the data, but i don't understand what i did.
i only ticked the check box "apply filter in both directions".
Do you have any idea what it mean? 😐 Many thanks for your prompt advice!
Hi @Anonymous ,
Due to I don't know your data model, here I will give you some suggestions.
Count =
IF (
HASONEVALUE ( 'TableName'[Column in Matrix Column] ),
DIVIDE (
DISTINCTCOUNT ( 'UCS_Appointment_Data'[a_centerclientid] ),
SUM ( 'Enrollment_Numbers'[Enrollment Numbers (including Part time and fill time courses] )
),
DIVIDE (
CALCULATE (
DISTINCTCOUNT ( 'UCS_Appointment_Data'[a_centerclientid] ),
FILTER (
ALL ( UCS_Appointment_Data ),
UCS_Appointment_Data[Type of Status] = MAX ( 'TableName'[Column in Matrix Row] )
)
),
CALCULATE (
SUM ( 'Enrollment_Numbers'[Enrollment Numbers (including Part time and fill time courses] ),
FILTER (
ALL ( 'Enrollment_Numbers' ),
'Enrollment_Numbers'[Type of Status] = MAX ( 'TableName'[Column in Matrix Row] )
)
)
)
)
If this reply still couldn't help you solve your issue, please share a sample file with me.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!