Forum Discussion
Measure not affected by filter
Hello,
I have a measure that calculates the correct value, but i do not want to change that value if a filter is selected.
Which adjustments do i have to make in this measure?
9 Replies
- Tahreem24Super User
ALL() is used to remove filters. So replace Allselected with ALL.
- parry2kSuper User
marsclone change ALLSELECTED to ALL
I would ⤠Kudos if my solution helped. š If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
ā”Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.ā”
- Syndicate_AdminAdministrator
Hello, I have a similar problem, were you able to solve it?
- Syndicate_AdminAdministrator
Hi everyone, has anyone had the opposite happen to you? Measures that are not affected by filters? I review the interactions and they are not disabled. The calculation expressions appear to be correct.
MEASURE 1:
Delta_Acum_vsAƱoPasado_Personas = [Acum_real_AƱoActual_Personas]/[Acum_real_AƱoPasado_Personas]-1and use the following:MEASURE 2:Acum_real_AƱoActual_Personas =CALCULATE([Real_Personas_a_hoy_V],'Calendar'[Date]<=TODAY()-1,'Calendar'[AƱoActual]="Current Year")MEASURE 3:Acum_real_AƱoPasado_Personas =WHERE Current_date_LY = DATE(YEAR(TODAY())-1, MONTH(TODAY()),DAY(TODAY()-1))WHERE Star_year_LY = DATE(YEAR(TODAY())-1, MONTH(12),DAY(2))RETURNCALCULATE(SUM(BD2[VISITORS]),'Calendar'[Date] < Current_date_LY,'Calendar'[Date] >= Star_year_LY)I appreciate your help.