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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
PBInonpro
Helper III
Helper III

Can anyone explain? Same measure in Calc Column as in Measure. Two different results.

TestColumn  = CALCULATE(SUMX(plan, plan[REMAINING] * 10), plan[PROJECT] = "OFFICE")
TestMeasure = CALCULATE(SUMX(plan, plan[REMAINING] * 10), plan[PROJECT] = "OFFICE")

PBInonpro_1-1674865254257.png

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@PBInonpro , Column will consider the full table and then apply the filter on that, if added. It can not be compared with the measure.

 

In measure calculate with and without filter will give different result

TestMeasure = CALCULATE(SUMX(plan, plan[REMAINING] * 10), plan[PROJECT] = "OFFICE")

 

vs

 

TestMeasure = CALCULATE(SUMX(plan, plan[REMAINING] * 10), FIlter(plan, plan[PROJECT] = "OFFICE"))

 

will be different

 

 

refer: Calculate with and Without filter : https://youtu.be/cN8AO3_vmlY?t=9310

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

Hi @PBInonpro ,

 

Your calculated column returns correct result 139500 on myside.

RicoZhou_0-1675068713194.png

RicoZhou_1-1675068801243.png

I think 141500 is the sum of the calculated column which is calculated based on your data model. You can try MAX/MIN function on [TestColumn] in table visual and check the result. If you still couldn't find the result, please show us a screenshot of your table or share a sample file with us.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@PBInonpro , Column will consider the full table and then apply the filter on that, if added. It can not be compared with the measure.

 

In measure calculate with and without filter will give different result

TestMeasure = CALCULATE(SUMX(plan, plan[REMAINING] * 10), plan[PROJECT] = "OFFICE")

 

vs

 

TestMeasure = CALCULATE(SUMX(plan, plan[REMAINING] * 10), FIlter(plan, plan[PROJECT] = "OFFICE"))

 

will be different

 

 

refer: Calculate with and Without filter : https://youtu.be/cN8AO3_vmlY?t=9310

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

Thanks, but is there a way to see where the 141,500 is coming from on the column? 

Hi @PBInonpro ,

 

Your calculated column returns correct result 139500 on myside.

RicoZhou_0-1675068713194.png

RicoZhou_1-1675068801243.png

I think 141500 is the sum of the calculated column which is calculated based on your data model. You can try MAX/MIN function on [TestColumn] in table visual and check the result. If you still couldn't find the result, please show us a screenshot of your table or share a sample file with us.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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