Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone,
Thanks for your attention. I would like to retrieve several information to made counts of a certain information as for ETL. My question is that how can I write the DAX script to extract text from a certain cell in excel? The following picture is the example, how do I retrieve the red words?
Really appreciate for your support. Thank you. 🙂
Solved! Go to Solution.
You may add a calculated column as follows.
Column = VAR s1 = "3. Defect type:" VAR s2 = "4. Initiator:" VAR p1 = SEARCH ( s1, Table1[Abnormal Description] ) VAR p2 = SEARCH ( s2, Table1[Abnormal Description], p1 ) RETURN MID ( Table1[Abnormal Description], p1 + LEN ( s1 ), p2 - p1 - LEN ( s1 ) )
You may add a calculated column as follows.
Column = VAR s1 = "3. Defect type:" VAR s2 = "4. Initiator:" VAR p1 = SEARCH ( s1, Table1[Abnormal Description] ) VAR p2 = SEARCH ( s2, Table1[Abnormal Description], p1 ) RETURN MID ( Table1[Abnormal Description], p1 + LEN ( s1 ), p2 - p1 - LEN ( s1 ) )
Hi @AlexLiang
This is a rough approach but you could introduce calculated columns to detect it using DAX
something like
Column contains Crack =
IF( FIND( "Crack", 'Table1'[Column3], 1, blank() ) > 0 , TRUE(), FALSE())
Thanks for your feedback.
What if I want to retrieve all kinds of "defect type" and put them in a new column?
Because I may need to calculate the frequency of each defect type.
Thank you again. 🙂
Do you have a predefined list of defects? Do you need to maintain a separate count for each type?
I think we have the predefined list of defect. The separate count for each type is the column that I want to input to powerBI for visualization. I am not sure if it's the same meaning as maintain, thank you.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |