Hi
I'm used to apply SUM.IF in Exel but I don't know how do the same via a Measure in Power BI.
I will illustrate my problem by an example. Let's say I have this data:
Sales opportunity, unique# | Sales prize | Revenue | Is the car blue? | Is the car a 4WD | Does the car have backseats? |
11 | 100 | 25 | True | False | True |
12 | 300 | 40 | False | False | False |
13 | 250 | 35 | False | False | False |
14 | 175 | 20 | False | True | False |
15 | 100 | 20 | False | False | False |
16 | 75 | 10 | True | False | True |
17 | 375 | 55 | True | True | True |
If I want to calculate and index that tells my what the average revenue is on all sales, I use this formula to create a Measure: Rev_average = (SUM (Data[Revenue]))/(COUNTROWS(Data)) * 100
My problem is that I also want to calculate revenue based on the entries where and only if one of the following values is true: “Is the car blue?”, “Is the car a 4WD”, ”Does the car have backseats?” So if all values is false it will not count in the average revenue.
Does anyone know how to do that?
BR
Anders