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.
Hi, I am trying to extract the number before days from the string 2 days or 1.5 days. How can I do so using DAX ?
Solved! Go to Solution.
Much easier to do that within the query editor with Text.BeforeDelimiter([YourColumn], " Days"). But here is an expression to do it with a DAX column. Replace Days[Days] with your actual Table[Column]
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Much easier to do that within the query editor with Text.BeforeDelimiter([YourColumn], " Days"). But here is an expression to do it with a DAX column. Replace Days[Days] with your actual Table[Column]
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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 |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |