The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Ola comunidade,
Como posso fazer para construir um Eixo X com 13 meses? Sendo que ao selecionar um determinado mes, o grafico se comportaria de forma dinamica. Ou seja, se selecionar o ano 2022 no mes de Agosto. O grafico ficaria, conforme imagem abaixo, sendo que ele pegaria os ultimos 13 meses, sendo os 8 meses do ano de 2022 e os outros meses do ano de 2021.
Imagem de exemplo:
** Caso não tenha nenhum ano/mes selecionado. o grafico ficaria assim
Dez(Ano anterior), Janeiro, Fevereiro,Março............................ Dezembro(Ano atual)
@Angelo-Silva , if you select one month and you want to display more than one, then slcier need to be there on independent date table
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = eomonth(_max, -13) +1
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
User | Count |
---|---|
12 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
9 | |
7 |