Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Measure behavior based on grid columns

Hello,

I'm new to Power BI.

I have a measure called COSTING = SUM(TABLE1.COST)

 

Use Case:

When users drags City from the Location Dimention, then do not add up the cost if ID is -1, so I modified my measure

as follows:

COSTING = CALCULATE(SUM(TABLE1.COST), FILTER (LOCATION.ID <> -1) works file

Here is the issue, but if user drags STATE (coming from the same Loaction Table) in the same grid then I want COSTING measure to ignore LOCATION.ID <> -1, behave like COSTING = SUM(TABLE1.COST)

 

What can I do to make meassure work

 

Here is the screen shot of what I'm looking for.

5 Replies