Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
SIBI1998
Helper I
Helper I

IF Condition using Then

Hi Team,

 

          If Sum(Act Ucc Cnt) >= 5 then I need an Output as Greater than 5 , 

 

          If Sum(Act Ucc Cnt) < 5 and Sum(Act Ucc Cnt) >=1 then I need an Output as Less than 5 .

 

How do I got the Solution.

 

1 ACCEPTED SOLUTION
truptis
Community Champion
Community Champion

Create a measure:
Result = var m1 = Sum(Act Ucc Cnt)
return
if(m1 >= 5,"Greater than 5", if(m1 >=1 && m1 <5","Less than 5","N.A."))

If this post solves your query, then please accept it as a solution to help other members find it faster. Also, hit a thumbs up. Thanks.

Best Regards,
Trupti S

View solution in original post

3 REPLIES 3
truptis
Community Champion
Community Champion

Create a measure:
Result = var m1 = Sum(Act Ucc Cnt)
return
if(m1 >= 5,"Greater than 5", if(m1 >=1 && m1 <5","Less than 5","N.A."))

If this post solves your query, then please accept it as a solution to help other members find it faster. Also, hit a thumbs up. Thanks.

Best Regards,
Trupti S

Anonymous
Not applicable

Really helpful

arvindsingh802
Community Champion
Community Champion

Create a Measure 
Dummy = Sum(Act Ucc Cnt)

Then in next measure where you nee the value (I have added secound else as Less than 1)
Value = IF([Dummy] >= 5, "Greater than 5",  IF([Dummy] < 5 && [Dummy] >=1 "Less than 5", "Less than 1"))


If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
Proud to be a Super User!!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors