Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Need the total row to use different calculation

Sample.png

On the attached application the column labeled Charge / Sow takes the average number of sows for the date range selected and divides the Charges by that amount which works fine on the individual farm basis, but this caused me a problem with the total row. I need the total row  to calculate by dividing the total Charge ($4,388.72) by the Avg Sows on Hand (65,409) and return the correct Charge/Sow (.0671). Any help on this will be greatly appreciated.

2 Replies
jpapador
Partner - Specialist
Partner - Specialist

Use the dimensionality() function.

If(Dimensionality() = 1, <Expression you want to use for total here>,

<Expression for rows here>)

Anonymous
Not applicable
Author

That helps, but the other part of my problem is that I can do a SUM(Total for the Other Costs), but I cannot do this for the FarrEndSowsOnhand because it is an average of the period selected. Any further suggestions?