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 this table
I need to write a DAX that finds Admit Status of 'N' or 'E'
Then it need to modify FAYEAR to get the left two characters and change that to 202110
So it would be "20" & Left(FAYEAR,2) & "10" newvalue
So then it would (Admit Status of 'N' or 'E') and "20" & Left(FAYEAR,2) & "10" newvalue
I wrote this but I am doing something wrong.
THANK YOU!
Solved! Go to Solution.
Hi @Anonymous ,
In the formula, "ADMITTERM" uses the same name as the Main[ADMITTERM] field, you need to replace it, such as "ADMITTERM 2".
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
@Anonymous Perhaps:
H21 =
COUNTROWS(
DISTINCT(
ADDCOLUMNS(
FILTER('Main',Main[ADMITSTATUS] = "N" || 'Main'[ADMITSTATUS] = "E"),
"ADMITTERM", "20" & LEFT(CALCULATE(DISTINCT(H2A_FR[FAYEAR])), 2)& "10"
)
)
)
Error that it cannot add columns because already exists.
Hi @Anonymous ,
In the formula, "ADMITTERM" uses the same name as the Main[ADMITTERM] field, you need to replace it, such as "ADMITTERM 2".
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
Thank you!
I think I figured it out,
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |