Forum Discussion
2 different formulas for conditional formatting based on different values
Hi Anonymous ,
Please try:
Measure =
VAR __CurrentID = MAX ( 'Table'[ID] )
VAR __FocusCount =
CALCULATE (
COUNTROWS ( 'Table' ),
'Table'[ID] = __CurrentID,
'Table'[classification] = "focus"
)
VAR __Result =
IF(__FocusCount=1,<condition1>,<condition2>)
RETURN
__Result
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
thanks i feel like this could work but i am having a small issue with it. So i have my two formulas for my conditional formatting and they work perfect individually but when I put them in this formula you gave me, they both completely change and not working right. I tried using the actual measure in the part where you put <condition1> and 2 and that didn't work. After that I used the formula from my measures and created a var in your formula and then used that in the condition and it didn't work either. Do you know why this would be?
edit: i realized it has to do with the count rows calcuation and it is always returning the secondc condition. i am looking into why this is happening