cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kreneec Frequent Visitor
Frequent Visitor

How to Prevent Value From Changing When True Statement Is Met

I have this measure and it works fine when the initial count of 5 is met (i.e. displays a 1).  BUT, if the count goes over 5, then the value displayed is 0.  I want it it to stay at 1 no matter what once the initial count is met.  Is there a way to do that?

 

AFC South = IF (CALCULATE(
    COUNT(Query2[TR#]),
    FILTER(
        Query2,
        Query2[BadgeName] = "AFC South" ||
        Query2[BadgeName] = "Houston Texans" ||
        Query2[BadgeName] = "Indianapolis Colts" ||
        Query2[BadgeName] = "Jacksonville Jaguars" ||
        Query2[BadgeName] = "Tennessee Titans"
    )
) = 5,1,0)
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How to Prevent Value From Changing When True Statement Is Met

Hey,

 

I guess I do not fully understand the question, but maybe it's possible to "just" change the condition to

...
) >= 5,1,0)

Regards,

Tom

 

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Super User
Super User

Re: How to Prevent Value From Changing When True Statement Is Met

Hey,

 

I guess I do not fully understand the question, but maybe it's possible to "just" change the condition to

...
) >= 5,1,0)

Regards,

Tom

 

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!

View solution in original post

kreneec Frequent Visitor
Frequent Visitor

Re: How to Prevent Value From Changing When True Statement Is Met

That worked! I was making it waaayyyy more complicated.  Thanks so much! 🙂

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 392 members 4,230 guests
Please welcome our newest community members: