Forum Discussion
AndreaBracco
1 year agoRegular Visitor
Problems with row/filter context
Hi all, I am quite new to Power BI and I have the following issue. I have the following visual, where the column "Check_Global" is actually a measure. The measure is computed as follows. ...
- 1 year ago
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it works.
Check_Global = SUMX ( VALUES ( calendar_table[date_column] ), CALCULATE ( IF ( OR ( SUMX ( 'CHP Units', 'CHP Units'[Check_Hours] ) > 0, SUMX ( 'CHP Units', 'CHP Units'[Check_EE] ) > 0 ), 1, BLANK () ) ) )
Jihwan_Kim
1 year agoSuper User
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it works.
Check_Global =
SUMX (
VALUES ( calendar_table[date_column] ),
CALCULATE (
IF (
OR (
SUMX ( 'CHP Units', 'CHP Units'[Check_Hours] ) > 0,
SUMX ( 'CHP Units', 'CHP Units'[Check_EE] ) > 0
),
1,
BLANK ()
)
)
)
- AndreaBracco1 year agoRegular Visitor
Hi, it worked perfectly. Thank you