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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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