Forum Discussion
Array does not sum data correctly
- 1 year ago
Hi Syndicate_Admin,
Thank you for reaching out to the Microsoft Fabric Community Forum.
I have reproduced your issue in Power BI Desktop and implemented the required logic to handle the (Blank) roles by replacing them with "Unassigned".What I did:
- Created a new calculated column using the following DAX:
RoleFixed = IF( ISBLANK('EnrollmentData'[Role]), "Unassigned", 'EnrollmentData'[Role] )- Used the new RoleFixed column in the Matrix visual, and it correctly displays "Unassigned" instead of blank for roles.
- Verified the total enrolled counts match the original data.
Expected output:
This meets the expected outcome based on your requirement.
For your reference, I’ve attached the working .pbix file.
If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.
Hi Syndicate_Admin,
Thank you for reaching out to the Microsoft Fabric Community Forum.
I have reproduced your issue in Power BI Desktop and implemented the required logic to handle the (Blank) roles by replacing them with "Unassigned".
What I did:
- Created a new calculated column using the following DAX:
RoleFixed = IF(
ISBLANK('EnrollmentData'[Role]),
"Unassigned",
'EnrollmentData'[Role]
)
- Used the new RoleFixed column in the Matrix visual, and it correctly displays "Unassigned" instead of blank for roles.
- Verified the total enrolled counts match the original data.
Expected output:
This meets the expected outcome based on your requirement.
For your reference, I’ve attached the working .pbix file.
If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.
- v-ssriganesh1 year ago
Community Support
Hi Syndicate_Admin,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.
Thank you.