Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
9 |