Last Tested: Jul 1, 2018
match(${products.brand},${products.brand})
if(${partition}=offset(${partition},-1) , 1+row()-${partition} , 1
This content is subject to limited support.
Last Tested: Jul 1, 2018
match(${products.brand},${products.brand})
if(${partition}=offset(${partition},-1) , 1+row()-${partition} , 1
This content is subject to limited support.
match(${fact_activity_log_composite.workouts_started},${fact_activity_log_composite.workouts_started})
if(${fact_activity_log_composite.activity_date}=offset(${fact_activity_log_composite.activity_date},-1) , 1+row()-${fact_activity_log_composite.activity_date} , 1
Hey
I believe it’s meant to be 2 table calcs. The first is the definition of a calc called “partition”. For this you enter the dimension you want to partition by.
Then, you write the second calc which gets the rank inside each partition.
This should produce a ranking like this:
If you only wanted to show, say, the top 5 of each rank, then you could make another table calc that returns “true” if the rank is <=5, and then click “hide nos from visualization”.
You can create an additional table calc that resolves to “No” if the condition isn’t met, and then “Hide No’s from Visualization” for the table calc column, would that work? There’s an example in docs here: https://docs.looker.com/exploring-data/using-table-calculations#using_table_calculations_in_visualizations
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.