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.
When using the function below, I get number values included in the "yes" slicer results. Is there a way to filter out numbers from being returned?
Solved! Go to Solution.
Hi @jrmaier ,
Try the following:
Column =
SWITCH (
TRUE (),
'132330'[HomeAdress2] = BLANK (), BLANK (),
FIND ( "#", '132330'[HomeAdress2],, -1 ) = 1, "NO",
SWITCH (
TRUE (),
IFERROR ( ( '132330'[HomeAdress2] * 3 ), 0 ) = 0,
IF (
EXACT ( UPPER ( '132330'[HomeAdress2] ), '132330'[HomeAdress2] ),
"yes",
"no"
),
"no"
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@v-yueyunzh-msft thank you for your help! How do I add in your function to this below that I use to look for all UPPER case text?
hi @jrmaier ,
Try the following code:
Column =
IF (
'132330'[HomeAdress2] = BLANK (),
BLANK (),
SWITCH (
TRUE (),
IFERROR ( ( '132330'[HomeAdress2] * 3 ), 0 ) = 0,
IF (
EXACT ( UPPER ( '132330'[HomeAdress2] ), '132330'[HomeAdress2] ),
"yes",
"no"
),
"no"
)
)
When it's number the measure returns no:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelix that took care of values that were just numbers. Thank you very much!
These are the values that still show. I can live with the ones with capital letters with the numbers. Is there a way to filter out the # symbol?
HI @jrmaier ,
Try the following code:
Column =
IF (
'132330'[HomeAdress2] = BLANK (),
BLANK (),
SWITCH (
TRUE (),
IFERROR ( ( '132330'[HomeAdress2] * 3 ), 0 ) = 0 || FIND("#",[Column],,-1) = 0,
IF (
EXACT ( UPPER ( '132330'[HomeAdress2] ), '132330'[HomeAdress2] ),
"yes",
"no"
),
"no"
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @jrmaier ,
Try the following:
Column =
SWITCH (
TRUE (),
'132330'[HomeAdress2] = BLANK (), BLANK (),
FIND ( "#", '132330'[HomeAdress2],, -1 ) = 1, "NO",
SWITCH (
TRUE (),
IFERROR ( ( '132330'[HomeAdress2] * 3 ), 0 ) = 0,
IF (
EXACT ( UPPER ( '132330'[HomeAdress2] ), '132330'[HomeAdress2] ),
"yes",
"no"
),
"no"
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi , @jrmaier
According to your description, you want to filter out the number and the text start with "#".
You can use this column to realize:
Column 2 = var _find= FIND("#",[Column],,-1)
var _number =IFERROR( VALUE([Column]),BLANK())
return
IF(_find=1,"no", IF(_number<>BLANK(),"no","yes"))
The result is as follows:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |