Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have a visualization that shows sales cancellations per month.
Measure used is the following:
Id and cancellation date (data distrato) are as expected, but sales date (data venda distrato) only shows the one date that's within july. Measure used is:
Solved! Go to Solution.
Hi @Anonymous ,
Could you please share some sample data(exclude sensitive data) and your expected result with calculation logic and special examples in order to provide you a suitable solution? As checked the formula of measure [Data venda distrato], it will only return only max [Data cadastro] even though you used ALL function in table 'CalendarTableAlt'[MesAno abr]... Do you want to get all dates which filter the conditions or something else?
Please try to update the formula of measure [Data venda distrato] as below and check whether it can return the correct result.
Data venda distrato =
CALCULATE (
MAX ( 'setelm_bi reservas_historicos_situacoes'[Data cadastro] ),
FILTER (
ALL ( 'setelm_bi reservas_historicos_situacoes' ),
'setelm_bi reservas_historicos_situacoes'[idreserva]
= SELECTEDVALUE ( 'setelm_bi reservas_historicos_situacoes'[idreserva] )
&& 'setelm_bi reservas_historicos_situacoes'[para_nome] = "Venda finalizada"
)
)
Best Regards
Hi @Anonymous
That worked perfectly, thanks a lot!
Hi @Anonymous ,
Could you please share some sample data(exclude sensitive data) and your expected result with calculation logic and special examples in order to provide you a suitable solution? As checked the formula of measure [Data venda distrato], it will only return only max [Data cadastro] even though you used ALL function in table 'CalendarTableAlt'[MesAno abr]... Do you want to get all dates which filter the conditions or something else?
Please try to update the formula of measure [Data venda distrato] as below and check whether it can return the correct result.
Data venda distrato =
CALCULATE (
MAX ( 'setelm_bi reservas_historicos_situacoes'[Data cadastro] ),
FILTER (
ALL ( 'setelm_bi reservas_historicos_situacoes' ),
'setelm_bi reservas_historicos_situacoes'[idreserva]
= SELECTEDVALUE ( 'setelm_bi reservas_historicos_situacoes'[idreserva] )
&& 'setelm_bi reservas_historicos_situacoes'[para_nome] = "Venda finalizada"
)
)
Best Regards
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
57 | |
37 | |
34 |
User | Count |
---|---|
99 | |
56 | |
54 | |
45 | |
40 |