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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gopaltarakad
Frequent Visitor

Same formula for calculated column and measure in the same table. Different results. Why?

Is there any reason why this might happen? My formula is the exact same in both places and the calculated column is included in the same table that the calculated measure is applied to- all using information from the same table. Thanks for your help.

5 REPLIES 5
v-caliao-msft
Employee
Employee

Hi @gopaltarakad,

 

Calculated columns (and tables) are:

- Evaluated for each row in your table, immediately after you hit 'Enter' to complete the formula

- Saved back into the model so take up space

 

Calculated Measures are:

- Evaluated when you use it in a visual, when the visual is rendered

- Not saved anywhere (well, actually there's a cache in the report layer but it's not part of the file when you hit Save)

 

As you can see, an simple DAX expression.
CalculatedColumn = sum(CombineA[Score])
CalculatedMeasure = sum(CombineA[Score])

Capture.PNG

 

Regards,

Charlie Liao

ankitpatira
Community Champion
Community Champion

@gopaltarakad On top of what Eno said you may want to go through this article on understand in-depth how both works. Basic difference between two is but I guess it will be something to do with the filter. If you can provide query for both I can look into it.

Thanks for your reply. Will check and get back to you.

@gopaltarakad Outside the obvious, which would be that you have a filter applied to one of the tables. The only other time I've encountered odd behaviour is when I copied a table or visual. For some reason it seemed that there were residual filters or something from the initial visual that was effecting the outcomes. Do you get the same behaviour if you re-create the table that is not showing correctly?


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Thanks for your reply. Will check and get back to you.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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