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.
hello.
how can I filter a value from a column that contains letters with tempering with the other columns e.g
to filter all ref_id that starts with CRII TB card_ as shown in the image above. thanks.
Solved! Go to Solution.
i want to filter in a measure, and i tried the containstring function but it didn't return anything. can you show me the full function PLEASE?
Hi @Anonymous ,
Please try below steps:
1. below is my test table
Table:
2. create a mesure with below dax formual
Measure =
VAR _refslip =
SELECTEDVALUE ( 'Table'[ref_slip] )
VAR _val =
IF ( CONTAINSSTRING ( _refslip, "CRII TB card_" ), "True" )
RETURN
_val
3. add a table visual with field and measure
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try below steps:
1. below is my test table
Table:
2. create a mesure with below dax formual
Measure =
VAR _refslip =
SELECTEDVALUE ( 'Table'[ref_slip] )
VAR _val =
IF ( CONTAINSSTRING ( _refslip, "CRII TB card_" ), "True" )
RETURN
_val
3. add a table visual with field and measure
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
i want to filter in a measure, and i tried the containstring function but it didn't return anything. can you show me the full function PLEASE?
https://learn.microsoft.com/en-us/dax/containsstring-function-dax
Do you want to filter it in a measure or create a calculated column? 🙂 Containsstring can do both.
Proud to be a Super User!
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 |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |