Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
NileshBhayani
Frequent Visitor

power bi custom visual facing one issue for Y axis data load

Error Details

on Y axis we used measure so when we load numeric data its works perfect but when i load string values i am getting error in console

Error: <path> attribute d: Expected number, "M310.596,NaNL729.86,NaNL7…"

Error.png

 

 

 

Would be glad if someone has a solution.

Thanks for help 🙂

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @NileshBhayani,

 

If you don't want textual values to be valid for that data role, set the requiredTypes property to include integer and numeric.

 

You can refer to the data roles documentation for further details.

 

Regards,


Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

3 REPLIES 3
dm-p
Super User
Super User

Hi @NileshBhayani,

 

If you don't want textual values to be valid for that data role, set the requiredTypes property to include integer and numeric.

 

You can refer to the data roles documentation for further details.

 

Regards,


Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Thank you @dm-p Your solution works for me 

v-rzhou-msft
Community Support
Community Support

Hi @NileshBhayani ,

 

According to your statement, I think this issue should be caused that the value type is set to number when setting the Y-axis of Power BI Custom visual.

Please check the Power BI Custom visual or you can contact the author of this custom visual.

For reference: Objects and properties of Power BI visuals - Power BI | Microsoft Learn

 

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.