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
ashpal
Regular Visitor

anomaly in results from Measure vs Calculated column

Hi guys,

I have a measure called Total Sales and table function TOPN as below with a calculated column as totSales,

 

Measure:
Total Sales = SUMX( Sales, Sales[Quantity] * RELATED( Products[Current Price] ) )

 

Calculated column:
totSales = [Total Sales]

 

Table function:
Top5ProductSold = TOPN(5,Products, Products[totSales],DESC)

 

So calculated column totSales is set to be equal to Total Sales measure BUT when put Measure and CalculatedColumn side by side in a report in front of list of Products Name from Products table, there are minor differences in some total sales amount of some products (enclosed snip).

 

any idea what is happening?

 

err4.jpg

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

What exactly are you trying to accomplish?  Why are you referring to a measure in a calculated column formula?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur

I'm new to Power BI and trying things may not be correct.

In this case, a comparison of calculated column and measure results is confusing me. I noticed the difference in result without trying to build or do anything purposefully. 

You may have a point asking, "referring to a measure in a calculated column", is this where the anomaly is happening? if yes, could you elaborate further please?

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.