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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
SimoLeve
Frequent Visitor

Measure (no filtering) vs Calculated column

Hello!

 

I am just trying to understand why, in this case, my measure cannot be aggregated (sum, average, etc.). Here is my measure which give the distance in km between a place on earth (46.35892453600279, -72.56697786519094) and other towns, having their lat and long coordinates in the Lat_Long table:

 

 

 

DistanceCTR = 12742 * ASIN(SQRT(0.5 - COS((MAX(Lat_long[LatitudeDec])-46.35892453600279)*PI()/180)/2 + COS(46.35892453600279*PI()/180) * COS(MAX(Lat_long[LatitudeDec])*PI()/180) * (1-COS((MAX(Lat_long[LongitudeDec])+72.56697786519094)*PI()/180))/2))

 

 

 

 

Normally, when I click on a measure in the field pane, I can chose a way to aggregate but for that measure, it wont work:

SimoLeve_0-1638972889854.png

 

Normally, this is what I have (Résumé is the french equivalent of aggregate):

SimoLeve_1-1638972989025.png

 

So, here is my question: What cause a measure to be aggregatable or not? If I do not SUM or MAX my table, I have an error related the the non uniqueness of the value. If I SUM or MAX my table, I have only one value : is it the answer to my question?
 
Would it be better with a calculated column? I am trying it now...
 
Thanks a lot,
 
SL
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SimoLeve , Measure is having its own aggregation, so not allowed to have one at the visual or tool level.

 

You can have a calculated column. or see if you can use measure there

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@SimoLeve , Measure is having its own aggregation, so not allowed to have one at the visual or tool level.

 

You can have a calculated column. or see if you can use measure there

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.