- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Average in total row Rankx
Hi its me again 🙂
I did the following formula to rank some data with two (2) filters:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @pfinanciero ,
Try to create 2 measures:
Measure_ranking = AVERAGEX(VALUES('Table'[Indicador]),AVERAGE('Table'[rank]))
Measure_valor = AVERAGEX(VALUES('Table'[Indicador]),AVERAGE('Table'[Valor]))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @pfinanciero ,
Try to create 2 measures:
Measure_ranking = AVERAGEX(VALUES('Table'[Indicador]),AVERAGE('Table'[rank]))
Measure_valor = AVERAGEX(VALUES('Table'[Indicador]),AVERAGE('Table'[Valor]))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@pfinanciero provide sample data and expected output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @smpa01 ,
I have the following data chart:
In the firt column "Razón social" are the names of the diferents companies, the secod column shows the type of the rate or indicator (if its an asset or a sale) for this example, the third column are the values and the last one is the year.
with this information I build the following table:
As you can see I insert an slicer with "Razón social" because the idea of the chart is to shows the values and raking of each company selected.
I need to calculate in the total row of the column Ranking the average of the results of that year, for example:
Fecha | 2018 | 2019 | 2020 | Total | ||||
Indicador | Valor | Ranking | Valor | Ranking | Valor | Ranking | Valor | Ranking |
Activos | 133.802 | 71 | 131.801 | 90 | 145.185 | 81 | 410.788 | 81 |
Ventas | 136.124 | 69 | 124.006 | 101 | 124.682 | 94 | 384.992 | 88 |
Total | BLANK | 70 | BLANK | 96 | BLANK | 88 | BLANK | 85 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The basic pattern for this will look like:
AVERAGEX (
SUMMARIZE ( Prueba, Prueba[Fecha], Prueba[Indicador] ),
[Ranking measure]
)
Note that if there is only one Fecha and Indicador in the filter context, you're only averaging over one value, so the result is the same as [Ranking measure].

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
09-10-2024 06:07 AM | |||
10-18-2024 08:37 AM | |||
11-18-2024 01:14 PM | |||
11-28-2024 10:35 AM | |||
07-09-2024 09:43 AM |
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
9 |
User | Count |
---|---|
29 | |
16 | |
15 | |
13 | |
12 |