Minimize
04

Recently, I encountered a situation that required the use of SUMX as part of a DAX measure.  Interestingly, SUMX seemed to only be taking in the integer part of the decimal used as part of the expression.

DAX expression # 1:

SUMX(FactResellerSales, FactResellerSales[SalesAmount] * 0.9 )

The result is 0 for all the cells on the pivot table.





DAX expression # 2:

SUMX(FactResellerSales, FactResellerSales[SalesAmount] * 2.9 )

The result reflects the fact that DAX only used 2 in the multiplication (instead of 2.9)




Hopefully this will be fixed in the next release.

As a workaround, you can create a DAX calculated column (instead of a measure), as the decimal is used properly there:


 

 

 

 

 

 

 

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

MSBiCentral Bloggers Minimize

Latest Entries Minimize
Using VBA to enhance interactivity of PowerPivot reports by JavierGuillen
Presenting for PowerPivot Analytics Expo (hosted by SSWUG on July 15) by JavierGuillen
PowerPivot Analytics Expo
Quartile, Percentile and Median in PowerPivot by JavierGuillen
Using MDX in a PowerPivot model
Median calculation in PowerPivot / DAX by JavierGuillen
How to calculate median over a PowerPivot measure
Calculating moving averages in DAX by JavierGuillen
After SSRS 2008 R2 Upgrade: Some Reports Hang by wsnyder
You just upgraded to SSRS 2008 R2 and some reports are hanging up, while others seem to work fine. How do you debug for this, and what is the fix?
SSRS SystemOverflowexception: Value was either too large or too small for an Int32 by wsnyder
You install or upgrade to SSRS 2008R2 Gold, and get the following error "SSRS SystemOverflowexception: Value was either too large or too small for an Int32". Here is what is going on....
PASS Virtual Chapter Presentation Slides on PowerPivot / DAX by JavierGuillen
Presentation slides for PASS VC webinar on PowerPivot and DAX
Business Intelligence Prototyping with PowerPivot by JavierGuillen
PowerPivot can be a really powerful tool for prototyping Business Intelligence projects.
Speaking for PASS Business Intelligence Virtual Chapter by JavierGuillen
Page 1 of 3First   Previous   [1]  2  3  Next   Last   

Copyright 2004-2012 MSBICentral.com Terms Of Use Privacy Statement