Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

How can I have different decimal places on different rows in a crosstab?

$
0
0

Crystal Reports 2011 and  Crystal Report for Visual Studio 2010, service pack 4

I have a very simple table where each row represents a measurement M with a timestamp T, a value V, and the number of decimals to display D

For example, my table has:

 

MTVD
M1T1V11
M1T2V21
M2T1V33
M2T2V43

 

My rows are the measurements, grouped by M, my colums are the timestamp T, my summarized field is Max of V1 so my crosstab looks like

 

Measurement\TimestampT1T2
M1V1.nnV2.nn
M2V3.nnV4.nn

 

What I want is for V1 and V2 to be displayed as a number with one place past the decimal showing, e.g. V1.n and V2.n and for V3 and V4 I want three places after the decimal to be displayed, e.g. V3.nnn and V4.nnn:

 




Measurement\TimestampT1T2
M1V1.nV2.n
M2V3.nnnV4.nnn

 

I know I can do this with a formula on the V's, but the problem with that is when I export to Excel the cells contain strings.  I want them to be numbers.

 

Is there any way I can tell the cross-tab for format these things by row?  I used the Format Field, Customized Number, then created a formula for the Decimals places, but it does not change based on the row.

-nld


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>