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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.