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 All,
I'm looking for a measure or custom column that is similar to an if else statement. My column [Type] has a bunch of values that start with AE, what I need is that for any entry that starts with AE the result should be "AE", everything else should be "other".
Table name: Table
Column name: Type
Text starts with AE: AE
All other entries: Other
Thanks in advance!
Solved! Go to Solution.
You can write a custom column in the query editor like this:
if Text.Start([Type], 2) = "AE" then "AE" else "Other"
The DAX calculated column equivalent would be
IF ( LEFT ( [Type], 2 ) = "AE", "AE", "Other" )
You can write a custom column in the query editor like this:
if Text.Start([Type], 2) = "AE" then "AE" else "Other"
The DAX calculated column equivalent would be
IF ( LEFT ( [Type], 2 ) = "AE", "AE", "Other" )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
13 | |
13 | |
9 |