cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Resolver I

## Coordinates for circle 3D

Hello,

I have this circle of radius = 6... so X = 6 * cos(radians(angle)), Y = 6 * sin(radians(angle)). In the scatter chart, it works ok.

I am looking (probably in DAX) for X' and Y', that will make the circle rotate 'towards and in front of me'... so in 3D sort of speak. So at 90 degrees angle, I will see a flat line.

I do not want to use X,Y,Z coordinates, I will rather adjust the size of the points to do the 3D effect.

Any help would be very appreciated.

Louis

2 REPLIES 2
Super User

Hello @Louis66,

You can use trigonometric functions to calculate the new X' and Y' coordinates based on the angle of rotation:

``````X' = 'Table'[X] * COS(RADIANS('Table'[Angle])) + 'Table'[Y] * SIN(RADIANS('Table'[Angle]))

You can then use X' and Y' as the X and Y values for your scatter chart, and adjust the size of the points to create the 3D effect.

I hope this helps! Let me know if you have any further questions.

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution?
➤ Lets connect on LinkedIn: Join my network of 13K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning
Resolver I

Hello,

I tried your method... ok what I see is a rotation of the circle. This is not what I hoped for - what I want is a rotation from 'back to front' - in other words, the circle will gradually collapse on itself to form a straight line (at 90 degrees), and then will gradually reform until I see it again perfectly, but on the 'other side'.

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors