The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello!
I need help to get the characters from a certain text using DAX. I have this Column "JobType". See table below.
Jobtype | NC.IN | Phase | Status |
NC 120_Rough Builder Walk__10Not Started | NC | NC 120_Rough Builder Walk | 10Not Started |
NC.IN 720_Dehu_Estimate__90Complete | NC.IN | NC.IN 720_Dehu_Estimate | 90Complete |
IN 622_CO EQ_QC__90Complete | IN | IN 622_CO EQ_QC | 90Complete |
Install_Estimates |
I have to use a DAX to get the characters for the Phase and Status Column from Jobtype column with this condition. If Column NC.IN is "" then ""
else
Phase column is extracted before the __(2underscores)
Status column is extracted after the __(2underscores)
I am confused what correct DAX formula to use.
Thank you.
Solved! Go to Solution.
pls try this
Status = IF(
NOT ISBLANK( 'Table'[NC.IN] ),
PATHITEM( SUBSTITUTE( 'Table'[Jobtype], "__", "|" ), 2 ),
""
)
@Ahmedx The solution works for Status Column.
Can I also ask help for the Phase Column. Same condition with Status column but Phase Column is extracted before the 2_(two Underscores).
Thank you.
this is ok now.. I use the PATHITEMREVERSE Dax.
Thank you.
Hi,
try these in custom columns:
I assume you're using direct query mode which is going to make it difficult with DAX in calculated columns as what you can do is limited, you could try it as a measure but you have to be a little creative: