Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have a column (AñoSemana) with different values, and I want to calculate different values that appear in the different rows of those columns, how can I differentiate between values in the column AñoSemana?
Refards,
Xavi
| Hora+Fecha | Pregunta | Pestaña | AñoSemana |
| 21/05/2020 7:52:23 | Filtros GAF | Residuos | 2020-S21 |
| 21/05/2020 7:52:23 | Filtros GAF | GAF | 2020-S21 |
| 21/05/2020 7:52:23 | Filtros GAF | Observaciones | 2020-S21 |
| 21/05/2020 7:52:23 | Filtros GAF | Residuos | 2020-S21 |
| 21/05/2020 7:52:23 | BUENAS PRÁCTICAS DE FABRICACIÓN | 2020-S21 | |
| 21/05/2020 7:52:23 | Foto | Foto-cortado | 2020-S21 |
| 21/05/2020 7:52:23 | BUENAS PRÁCTICAS DE FABRICACIÓN | 2020-S21 | |
| 21/05/2020 7:52:23 | Foto | Foto-lateral | 2020-S21 |
| 21/05/2020 7:52:23 | Foto | Foto-boca | 2020-S22 |
| 21/05/2020 7:52:23 | Foto | Foto-cortado | 2020-S22 |
| 21/05/2020 7:52:23 | Foto | Foto-lateral | 2020-S22 |
| 21/05/2020 7:52:23 | Foto | Foto-boca | 2020-S22 |
| 21/05/2020 7:52:23 | ¿Hay cambio de filtro? | DataKey1519313871619 | 2020-S22 |
| 21/05/2020 7:52:23 | ¿Hay cambio de filtro? | DataKey1519313871619 | 2020-S22 |
| 21/05/2020 7:52:23 | Toneladas filtradas | Toneladas | 2020-S22 |
| 21/05/2020 7:52:23 | Toneladas filtradas | Toneladas | 2020-S22 |
| 21/05/2020 7:52:23 | Nivel tanque Lipsa | DataKey1543398759149 | 2020-S22 |
| 21/05/2020 7:52:23 | Nivel tanque Lipsa | DataKey1543398759149 | 2020-S22 |
| 21/05/2020 7:52:23 | Línea | DataKey1508409950520 | 2020-S22 |
Solved! Go to Solution.
Hi @XaviOV ,
Just not clear on your requirement calculation part.
But if you are looking for extracting unique values from your column, you can use something like this:
DISTINCT(Table[AñoSemana])
Replace "Table" above with your table name.
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
@XaviOV ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
Hi @amitchandak and @Pragati11
The column "AñoSemana" contains the value of YearWeek and what I want to do of the rest of the columns is calculated by each group of "AñoSemana".
For example, in the year 2019 and week 35 I have several different production lines and I want to know which ones are running in these weeks, year 2019 week 36, year 2019 week 35....
I have a column with number of line and other column with the number of these lines.
Regards,
Xavi
Hi @XaviOV ,
I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data )? Then I will help you more correctly.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @XaviOV ,
One thing you can do is move your "AñoSemana" on a table visual, try bringing in other columns as summarised (Count, SUM, etc.)
You can try looking to few things in Power BI:
https://docs.microsoft.com/en-us/dax/groupby-function-dax
https://docs.microsoft.com/en-us/dax/summarizecolumns-function-dax
https://docs.microsoft.com/en-us/dax/earlier-function-dax
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
Hi @XaviOV ,
Just not clear on your requirement calculation part.
But if you are looking for extracting unique values from your column, you can use something like this:
DISTINCT(Table[AñoSemana])
Replace "Table" above with your table name.
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |