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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Super User
Super User

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.