Hi Power BI Community!
Solved! Go to Solution.
@Beginner_2020 - Well, you shouldn't, you should use SWITCH(TRUE()...) but if you must:
IF(
<condition>,
IF(
<other condition>,
<result true>,
<result false>
),
<result first if is false>
)
Or if you mean logic, IF(<condition> && <other condition>,true,false)
Proud to be a Super User!
@Beginner_2020 - If you have a measure for "DoA Count" and "Count of Parts" and they work, can you just do this:
DoA Rate =
IF([DoA Count]=1 && [Count of Parts]=0,1,BLANK())
Proud to be a Super User!
@Greg_Deckler Thank you for your reply. How can I include a second IF fuction?
@Beginner_2020 - Well, you shouldn't, you should use SWITCH(TRUE()...) but if you must:
IF(
<condition>,
IF(
<other condition>,
<result true>,
<result false>
),
<result first if is false>
)
Or if you mean logic, IF(<condition> && <other condition>,true,false)
Proud to be a Super User!
@Beginner_2020 , Not very clear to me
Assume you have two measures DoA Count and Count of parts , then you can have a measure
if([DoA Count] = 1 && [Count of parts] = 0,1 ,[DOA rate (monthly)])
You can use one measure inside another one. When want to filter using a measure, you need to take care of row context
Proud to be a Super User!
@amitchandak
Thank you for the reply. I have the two measure DoA Count and Count of parts
@Beginner_2020 , if is fine but check value or result
result >0
result <> 0
isblank(result )
not(isblank(result ))
do not just give results in if unless the true-false value is expected. It might work. But may change result ay someplace
Proud to be a Super User!
User | Count |
---|---|
360 | |
201 | |
67 | |
66 | |
49 |