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.
Olá
Preciso comparar periodos distintos no mesmo visual, porem não estou conseguindo.
PBIX aqui
Esta medida dá certo:
Vendas1 =
CALCULATE (
[Total],
ALLSELECTED ( dcalendario1 ),
DATESMTD ( dcalendario1[Date] ),
USERELATIONSHIP ( dcalendario1[Date], fSboprodql[DataPedido] ),
USERELATIONSHIP ( dcalendario1[Date], 'fSboprodcd'[DataPedido] ),
dStatus[Status Agrupador] = "FATURADO"
|| dStatus[Status Agrupador] = "CARTEIRA",
'fSboprodcd'[OperacaoFiscal] = "VENDA",
fSboprodql[OperacaoFiscal] = "VENDA"
)
Esta medida não dá certo:
Vendas2 =
CALCULATE (
[Total],
ALLSELECTED ( dCalendario1 ),
DATESMTD ( dcalendario1[Date] ),
USERELATIONSHIP ( dCalendario2[Date], fSboprodql[DataPedido] ),
USERELATIONSHIP ( dCalendario2[Date], 'fSboprodcd'[DataPedido] ),
dStatus[Status Agrupador] = "FATURADO"
|| dStatus[Status Agrupador] = "CARTEIRA",
'fSboprodcd'[OperacaoFiscal] = "VENDA",
fSboprodql[OperacaoFiscal] = "VENDA"
)
Solved! Go to Solution.
@Vilmar , refer if my video or blog can help on this
How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg
blog : https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
Hi @Vilmar,
You are dragging and dropping the 'Dia' of the table 'dCalendario1' in the table visual. It is not part of the 'Vendas2' date filter and I have added a new 'Dia' column to table 'fSboprodcd'.
Here is the output:
Please try the attached demo.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Hi @Vilmar,
You are dragging and dropping the 'Dia' of the table 'dCalendario1' in the table visual. It is not part of the 'Vendas2' date filter and I have added a new 'Dia' column to table 'fSboprodcd'.
Here is the output:
Please try the attached demo.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
@v-xulin-mstfe @amitchandak as dicas de vocês me ajudou a criar uma terceira tabela calendario, fazer o relacionamento entre as duas tabelas fatos e colocar ela no visual. Agora deu certo. Obrigado!!
@Vilmar , refer if my video or blog can help on this
How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg
blog : https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |