Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Good Afternoon,
I am using an SPC control (which I have imported in)....When I assign fields to both Outcome/Numerator and ID Key (Date) there is no problem. But when I add the Indicator-signifying field - which is of Text type - to Grouping (Summary Table) I get the following error:
"Cannot Read properties of null (reading 'length')
Kindly advise how I can resolve this.
Regards
Solved! Go to Solution.
Hi @F_Reh ,
This error message in Power BI, "Cannot read properties of null (reading 'length')," typically occurs when the code is trying to access the length property of a variable that is null or undefined.
I think you can do these things following:
1. Ensure that all data sources are correctly connected and that there are no null values where the code expects data.
2. Review your DAX expressions to ensure they handle null values properly. You might need to use functions like IF, ISBLANK, or COALESCE to manage null values.
3. You can also refer to the official SPC Chart documentation:
Business Apps – Microsoft AppSource
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I tried Coalesce function but it did not rectify the issue. The field used for Grouping (Summary Table) is called 'Data Records'[Outcomes] is actually of Text type (perhaps that was the cause of the issue when used in conjunction with Coalesce ?).
I have more or less resolved the issue now as follows:
By creating a new calculated column with the following expression:
Regards
Hi @F_Reh ,
This error message in Power BI, "Cannot read properties of null (reading 'length')," typically occurs when the code is trying to access the length property of a variable that is null or undefined.
I think you can do these things following:
1. Ensure that all data sources are correctly connected and that there are no null values where the code expects data.
2. Review your DAX expressions to ensure they handle null values properly. You might need to use functions like IF, ISBLANK, or COALESCE to manage null values.
3. You can also refer to the official SPC Chart documentation:
Business Apps – Microsoft AppSource
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
please share the dummy data pbix file for easy reference
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |