The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Solved! Go to Solution.
Hello @Samiks95 ,
for new column:
Text = If( [Collected at Club Percentage]< 0.04,"Failed","Success"
and for measure :
Text = If( selectedvalue(table[Collected at Club Percentage])< 0.04,"Failed","Success"
if you find this helpful please accept as solution and a kudos is appreciated
Hello @Samiks95 ,
for new column:
Text = If( [Collected at Club Percentage]< 0.04,"Failed","Success"
and for measure :
Text = If( selectedvalue(table[Collected at Club Percentage])< 0.04,"Failed","Success"
if you find this helpful please accept as solution and a kudos is appreciated
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
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |