Forum Discussion
josepcervello
7 years agoFrequent Visitor
New table on a data model: Create a measure formula that changes depending on a column string value
I created a table on power BI that takes data from other tables which has the fields: KPI (Column) | Value (Measure) Revenues | CALCULATE(SUM...
- 7 years ago
You may add MAX fuction like below:
Measure = IF ( MAX ( 'New_Table'[KPI] ) = "Revenues", CALCULATE ( SUM ( 'F_Table'[Value] ), 'F_Table'[Scenario] IN { "Actual" }, M_Account[Level 7] = "Revenues" ) )Regards,
v-cherch-msft
Microsoft Employee
7 years agoYou may add MAX fuction like below:
Measure =
IF (
MAX ( 'New_Table'[KPI] ) = "Revenues",
CALCULATE (
SUM ( 'F_Table'[Value] ),
'F_Table'[Scenario] IN { "Actual" },
M_Account[Level 7] = "Revenues"
)
)
Regards,