Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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,
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |