Jump to content

Configure default summary method not working


combhua

Recommended Posts

I'm evaluating the Jaspersoft AWS offering for my company and having issues with configuring a default summary method other than SUM.

 

It's an issue for us because summing on some of our columns causes an overflow error because the numbers are too large. They are pseudo guid values, and summing more than 10 of them will guarantee an overflow.

 

To configure this, I currently use the Domain Designer, under the "Display" tab to select the measure in question and then click on "Edit" on the right side panel. This lets me change the dropdown under "Summary Method" to "Distinct Count". Is there another place I should be configuring this?

 

When I add that measure to the ad-hoc editor, I get a vague error, which I eventually track down to find that it is attempting to SUM the column even when I tell it to count unique values. I've recreated the Domain a number of times, each with the same result.

 

  • Can I prevent Jaspersoft from summing a measure?
  • Are there other places I should configure the default aggregate method?

Thanks!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello there - You are right to use the Domain designer display features. If the field contains pseudo guid values, you will be best changing the type from "measure" to type "field." When you set a field to type "Field" the summary function list only makes functions count and distinct count available. 

Let me know how this works for you - good luck!

Mary Flynn

Jaspersoft

Link to comment
Share on other sites

Thanks for your suggestion! Unfortunately, it did not work.

 

I used the Domain Designer to set it as a field. When I opened up the ad-hoc editor, it appeared under the list of Fields as expected.

 

When adding it to the workspace as a field, e.g. to the rows, it comically lists every unique value in the field, pretty much as expected. There's no obvious path from here.

 

When I right click on the listing and select "Use as measure", it moves it to the measures list as expected. When I add it to the workspace, it attempts to run query with the incorrect aggregation method again, causing the error.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...