Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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 |
---|---|
78 | |
78 | |
59 | |
35 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |