Last Modified Date: 26 Dec 2023
Environment
- Tableau Desktop 2022.2.2
- Amazon Redshift
Answer
Assuming we have a crosstab showing the percentile values of each quarter in 2019 on 6th of each month for Binders(Sub-Category).1. Add the [Row ID] field which contains a unique ID value for each row to [Details] mark card.
2. Create a calculation field [WINDOW_PERCENTILE] .
IF FIRST()=0 THEN WINDOW_PERCENTILE(SUM([Sales]),0.5) END
3. Add the [WINDOW_PERCENTILE] to the [Text mark] card and right-click on it then click [Compute using] > [Row ID]
4. Check the results.
Please refer to Sample.twbx for further details.
Additional Information
PERCENTILE function is available for the following data sources: Non-legacy Microsoft Excel and Text File connections, Extracts and extract-only data source types (for example, Google Analytics, OData, or Salesforce), Sybase IQ 15.1 and later data sources, Oracle 10 and later data sources, Cloudera Hive and Hortonworks Hadoop Hive data sources, EXASolution 4.2 and later data sources.Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Continue Searching
Knowledge Base
Community
Product Help
Training and Tutorials