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.
Gostaria de saber se é possivel mostrar o YTD quando o primeiro campo da Matriz é texto.
Preciso que seja calculado de acordo com o mes atual e com a linha.
Mas só funciona quando coloco o mes
Alguem sabe me dizer se é possivel ter essa visão sem usar data na matriz?
Hi @biancaramalho31 ,
Do you want to calculate current YTD sum by group? Here I suggest you to create a "DimDate" table, then create a measure to achieve your goal.
Calendar = ADDCOLUMNS( CALENDARAUTO(),"Year",YEAR([Date]))
Build a relationship between "DimDate"[Date] and "Data"[Date].
Measure:
YTD = CALCULATE(SUM('Table'[Value]),FILTER('Calendar','Calendar'[Year] = YEAR(TODAY())))
Result is as below.
You see we get YTD in 2022 in matrix.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
16 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
26 | |
3 | |
2 | |
2 | |
2 |