cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Calculating measure with RELATED at get wrong answer

Hi,

 

I have a caluclated measure (Average Score) which is a function of two other measures (TotalScore = Sum(Table[Score]) and SCount = Count(Table[Score]). To plot the average score in a circle, using a scatter diagram, I am trying to calculate the x and y using sin and cos, respectively, and radians based on categories, where the angle should be looked-up using related-table. In MS Excel this would have been straightforward, but in Power BI the result seems to be multiplied by the product of 'the number of attributes in a category' times 'the number of respondents'. What am I doing wrong here?

1 REPLY 1
Highlighted
Super User IV
Super User IV

Re: Calculating measure with RELATED at get wrong answer

Hmm, can you supply some sample data and more information on your calculations? I have some Quick Measures submitted to the gallery for converting Catesian coordinates to Polar, (and the reverse) not sure if those would be of any assistance:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Cartesian-2-Polar/m-p/347574

 


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors