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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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