Forum Discussion
Analitika
Post Prodigy
3 years agoFilter measure in Power BI
Hi, I would like to filter measure according to another measure condition. For example, calculate(a, filter(b<30). But problem is that new column becomes same as old. I don't get why it happens....
johnt75
Super User
3 years agoWhen the calculation is performed at the grand total level then the filter condition is met. You need to iterate over whichever column provides a unique identifier for the row in your table, e.g. if the rows each show a different date then you could use
Filtered measure =
SUMX (
VALUES ( 'Date'[Date] ),
CALCULATE ( [A], FILTER ( 'Table', [B] < 30 ) )
)
Analitika
Post Prodigy
3 years agoI tried but it didn't change at all:
Filtered measure =
SUMX (
VALUES ( 'DBA klient_tiekejai'[kli_pav] ),
CALCULATE ( [_m_ST_Bendra_Skola], FILTER ( '_Measures_ST_PS', [DATA PRADELSIMAS_ST] <= 30 ) )
)