This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Your file has been submitted successfully. We’re processing it now - please check back in a few minutes to view your report.
01-29-2018 16:00 PM - last edited 06-27-2018 13:25 PM
These two measures convert Cartesian coordinates to polar coordinates. Both take two parameters, x and y, which are Cartesian coordinates.
r = SQRT(POWER(MAX([x]),2)+POWER(MAX([y]),2))
theta =
SWITCH(TRUE(),
MAX([x])>0, ATAN(MAX([y])/MAX([x])),
MAX([x])<0 && MAX([y])>=0, ATAN(MAX([y])/MAX([x]))+PI(),
MAX([x])<0 && MAX([y])<0, ATAN(MAX([y])/MAX([x]))-PI(),
MAX([x])=0 && MAX([y])>0,PI()/2,
MAX([x])=0 && MAX([y])<0,-1*PI()/2,
BLANK()
)
eyJrIjoiYjY5OTIxMzEtMWRiNy00ZmQ0LTk5ZjMtMTMxN2M4OTdiNTMwIiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9