Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Solved! Go to Solution.
Hi @steambucky
I'm not quite sure I understand what you need as I believe you have all the info you need already in the code you show.
Let
_description_all = _description_coal + _description_statistics
then
If _description_all = 0 -> No description found
If _description_all = 2 -> Both coal and statistics found
If _description_all = 1 -> If _description_coal =1 only "coal" found , otherwise only "statistics" found
Should you want to do everything in one go and return 1 only when both are found:
Coal Stat score =
IF (
SEARCH ( "coal", 'SPOC_1-1-2018_to_7-2-2019'[COMMENTS], 1, 0 ) <> 0
&& SEARCH ( "statistics", 'SPOC_1-1-2018_to_7-2-2019'[DESCRIPTION], 1, 0 ) <> 0,
1,
0
)
Hi @steambucky
I'm not quite sure I understand what you need as I believe you have all the info you need already in the code you show.
Let
_description_all = _description_coal + _description_statistics
then
If _description_all = 0 -> No description found
If _description_all = 2 -> Both coal and statistics found
If _description_all = 1 -> If _description_coal =1 only "coal" found , otherwise only "statistics" found
Should you want to do everything in one go and return 1 only when both are found:
Coal Stat score =
IF (
SEARCH ( "coal", 'SPOC_1-1-2018_to_7-2-2019'[COMMENTS], 1, 0 ) <> 0
&& SEARCH ( "statistics", 'SPOC_1-1-2018_to_7-2-2019'[DESCRIPTION], 1, 0 ) <> 0,
1,
0
)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 105 | |
| 41 | |
| 34 | |
| 25 |