Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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 @Anonymous ,
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 @Anonymous ,
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 @Anonymous ,
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 @Anonymous ,
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 , @Anonymous
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
User | Count |
---|---|
67 | |
61 | |
47 | |
34 | |
32 |
User | Count |
---|---|
87 | |
72 | |
56 | |
49 | |
45 |