Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 |
---|---|
85 | |
80 | |
77 | |
49 | |
41 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |