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.
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 @cdesseaux ,
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 @cdesseaux ,
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
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 |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |