Need Dax Query for Below requirement
Getting the some value or text from column where specific charecter is there
Ex: 234#val*val1
13#val*0.001
Ans: 234
13
Make All values in to a new column
Loading
Need Dax Query for Below requirement
Getting the some value or text from column where specific charecter is there
Ex: 234#val*val1
13#val*0.001
Ans: 234
13
Make All values in to a new column
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Dec 19, 2023, 5:56 AM
To extract values from a column in Power BI using DAX, you can use the
LEFTandFINDfunctions. Here's an example DAX query that extracts the values before the "#" character:In this query, replace
'TableName'with the name of your table and'ColumnName'with the name of the column containing the values you want to extract.Similarly, if you want to extract values before the "*" character, you can modify the query as follows:
To create a new column with the extracted values, simply add the above DAX query to the formula bar in Power BI and press Enter. The new column will be created with the extracted values.
Remember to adjust the query based on the specific character you want to extract values before. Additionally, you can modify the query further to handle different scenarios or patterns in your data.