Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola
Nuevo en PowerBI así que disculpa si esto debe ser obvio.
Si tengo los siguientes datos:
Tabla YQ fiscal
Yq | rownum |
2020 Q 4 | 1 |
2020 Q 3 | 2 |
2020 Q 2 | 3 |
2020 Q 1 | 4 |
2019 Q 4 | 5 |
2019 Q 3 | 6 |
2019 Q 2 | 7 |
2019 Q 1 | 8 |
Luego otra mesa
Yq | Representante | Importe neto USD |
2020 Q 4 | John Smith | 200 |
2020 Q 3 | Jane Doe | 500 |
2019 Q 4 | John Smith | 400 |
Y tengo una cortadora en el artículo YQ, ¿cómo me aseguraría de que:
Un gráfico de barras apiladas solo muestra x números de elementos en el eje x. Específicamente, quería mostrar un máximo de los últimos 4 trimestres en el pasado si no se filtra nada (tengo varios años de datos, el gráfico se llena, pero no quiero filtrar esta información ya que la gente puede querer revisar los elementos 3 años en el pasado).
Había creado una medida:
Solved! Go to Solution.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@ydrol , Crear una tabla común qtr year, unir con ambas tablas . Crear un rango de año Qtr en que en el año qtr
nueva columna
Rango de Qtr á RANKX(all('Date'),'Date'[Fecha de inicio de Qtr],ASC,Dense)
Medida
Este Qtr - CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]-max('Date'[Qtr Rank])))
Last Qtr á CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]-max('Date'[Qtr Rank])-1))
last 4 Qtr á CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'), 'Date'[Qtr Rank]>'max('Date'[Qtr Rank])-4 && 'Date'[Qtr Rank]<-max('Date'[Qtr Rank])))
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |