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'm trying to search multiple text in a column and to categorize it accordingly.
for
and I'm currently using:
The output should be like below:
PROCEED TO SEMESTER 2 = PROCEED TO SEMESTER
PROCEED TO SEMESTER 2 AND REPEAT FAILED MODULE(S) IN JULY 2018 = PROCEED TO SEMESTER AND TO REPEAT
However using the Calculation its not giving me the right category, help me please...
Solved! Go to Solution.
is it a measure or a column
The first condition you have to split
Search("Proceed to Semester",[Column],1,0)>0 && Search("To Repeat",[Column],1,0)>0
Change column name and text as per need
Hi, @buzzkoi69
Based on your description, I created data to reproduce your scenario.
Academic Progress:
You may create a measure as below.
Result =
var _value = SELECTEDVALUE('Academic Progress'[Recomendation])
return
SWITCH(
TRUE(),
CONTAINSSTRINGEXACT(_value,"PROCEED TO SEMESTER")&&CONTAINSSTRINGEXACT(_value,"AND REPEAT"),"PROCEED TO SEMESTER AND TO REPEAT",
CONTAINSSTRINGEXACT(_value,"TERMINATION"),"TERMINATION",
CONTAINSSTRINGEXACT(_value,"PROCEED TO SEMESTER")&&NOT(CONTAINSSTRINGEXACT(_value,"TO REPEAT")),"PROCEED TO SEMESTER",
BLANK()
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
is it a measure or a column
The first condition you have to split
Search("Proceed to Semester",[Column],1,0)>0 && Search("To Repeat",[Column],1,0)>0
Change column name and text as per need
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |