Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
AdrianS1
Contributor III
Contributor III

top 30 rows in one total row

Hi, I have a problem

 I have a PivotTable with dimension and 2 measures.

AdrianS1_1-1693386376300.png

 How to show only total for this top 30 rows  in one row ? 

Any Ideas?

Labels (4)
1 Reply
Javizh
Partner - Contributor III
Partner - Contributor III

Hello.

You can achieve that activating the "Show totals" option on the Dimension. Then the metric should have an IF statement with the Dimensionality function, that wil allow you to calculate a different metric for the Totals Row.

When Dimensionality is 0 (the totals row) your metric should calculate the Top 30, if Dimensionality is not 0 (the rest of the rows) the metric should be as normal.

It should be something like this.

  • IF(Dimensionality() = 0,
    Sum({<YourDimension= {"= num(Rank(Sum(YourMetric),4)) < 30"}>} YourMetric),
    Sum(YourMetric)
    )

Attached is an example.

Hope its helpful.

Best regards.