Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
16 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |