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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Samiks95
Regular Visitor

Creating Dax Success or Failure

Capture.PNG   I have a column of Collected at club Percentage. I have different % here. If club has atleast collected 4 or more than 4% it's success. And if its less than 4% , its failed. How do I create a dax for this. Please help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 Hello @Samiks95 ,

for new column:

Text = If( [Collected at Club Percentage]< 0.04,"Failed","Success"

Column.png

 

and for measure :

Text = If( selectedvalue(table[Collected at Club Percentage])< 0.04,"Failed","Success"

Measure.png

if you find this helpful please accept as solution and a kudos is appreciated

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

 Hello @Samiks95 ,

for new column:

Text = If( [Collected at Club Percentage]< 0.04,"Failed","Success"

Column.png

 

and for measure :

Text = If( selectedvalue(table[Collected at Club Percentage])< 0.04,"Failed","Success"

Measure.png

if you find this helpful please accept as solution and a kudos is appreciated

 

besomebody20
Resolver I
Resolver I

Hi @Samiks95 ,

Please try this measure. It will return your expected results depending how it is used.

Club Grade = 
VAR countGreaterThan4Per =
COUNTROWS(
FILTER(
'Sample Data',
'Sample Data'[Decimal Percentage] > 0.04
)
)

RETURN
IF(
HASONEVALUE('Sample Data'[Club]),
IF(
countGreaterThan4Per >= 4,
"Success",
"Fail"
)
)

 

Results in a table visual

besomebody20_0-1667249667255.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.