Filtering google sheets column to show cells ending with one of several values - regex

I need to filter column A to see which cells end with values like .com/,.org/,.co.uk/, etc
Instead of filtering by "text ends with" dozens or hundreds of times, is there a way to combine all of these into one custom formula?

try this custom formula for:
filter view
conditional formatting
data validation
=REGEXMATCH(A1, ".com/$|.org/$|.co.uk/$")

Related

Looking for a search function across multiple columns in Power BI

I'm looking to do have a user search field on my page to allow me to select based on finding results across several columns of data.
Something like this.
sample data
Model
Color
Make
Hilux
Blue
Toyota
Rav4
Grey
Toyota
Suberb
Red
Skoda
I want a search field where users could enter a search for "blue toyota" or "red suberb".
I have created a calc column and joined all the fields together but the only searches that work are single value searches such as "Grey", "Rav4".
An easy way to achieve this is to create a custom column in Power Query
custom column
And add a text filter in the front end, set it to advanced filtering and select contains function
result
Or explore the third party visuals to get a slicer that filter like contains function above

Power BI Combine Value Plus Unichar In a Tabular Report

I have one tabular report to track the performance according to the month... if the difference is in positive values then need to show "GREEN UP ARROW" icon and if the difference is in negative values then need to show it in "RED DOWN ARROW".
Required the above output into one single column not in to multiple column like in the below screenshot
I have tried the UP and Down Arrows in my report but I am unable to get the result in to one column.
You can use conditional formatting to achieve this. Edit Cell Elements on your visual, turn on Icons for the required series, then set the icon options as follows:
This displays as:

In Power BI, using DAX. How do I get multiple (text) values/strings from a slicer?

For a multi page report I'd like to put all synchronised slicers on the first page and then show the selection result on cards in all aother pages.
I followed this tutorial by Curbal:
https://www.youtube.com/watch?v=_k_Qxb6pyCc
This works for selecting numbers. But....
I have text in the selectable fields.
So how do I return multiple selected strings from a slicer?
I hope it's just a small thing that I'm missing.
[edit]
Here's two images:
First page with slicers
Second page with visuals and cards based on the selection on page one.
Kind regards,
Erik Crins
There is a function that aggregates the values in a table - CONCATENATEX
https://learn.microsoft.com/en-us/dax/concatenatex-function-dax
If you want to show all the values selected in a slicer on a card you can use it like this:
Text = CONCATENATEX(ALLSELECTED(Slicer[Field]), [Field], ", ")

Grouping by multiple columns and aggregating all values

I am rather new to Power Bi and I have a question i can't find the answer to.
I want to import a table that have some label columns, with repeated items, and more than 15 data columns.
My desire result would be to group the label columns, so no repeated items, and aggregate the values of the remaining columns.
Is there a way to do that in PQ editor or DAX ?
I appreciate any help or direction you can give me!
A sample of the table (it's much bigger, with multiple values in the first three columns)
Table Sample
Thanks a lot
Edit: From that sample, the output y I want is the following
Output Sample
The thing is, there are many different values in the first columns, and i need to agreggate all the other values, keeping they column name (cause this info is already linked to other files).
Maybe the only way is to group by and add the columns, renaming them one by one?
I want to do this in a couple of files, so if you know of another way please let me know!
In your query designer import your table. Then go to Home > Group By and group like you want it, the same goes for the aggregations and thats it.
If you just want to remove row duplicates, just group all columns which you dont want to aggregate and the rest can be aggregated like you want it.

Merge or combine two columns in power bi

I am not sure if my title is correct one, but here is the deal:
I want to make a matrix visualization in Power Bi Desktop. I have fields: ARTICLE_ID and ARTICLE_NAME.
I would like to have both those fields in COLUMNS position in matrix data view. And I need them to be in one row, no need to drill down... because it is one and the same thing...
I need to have ARTICLE_ID and ARTICLE_NAME as two separate columns on the same level. without drilling. And also, I dont want to use concatenation or merging into some third column. is that possible? thanks
1) I started with this sample data.
2) I created a matrix and configured it as shown in the image below.
3) I clicked the forked arrows to show all levels.
4) In the Rows section of the formatting pane, I turned off "Stepped layout".
5) In the Subtotals section, I turned off "Row subtotals".
I don't know if this is exactly what you are looking for, but I think it is the closest I can come up with since you don't want to concatenate the columns together.
If they are from the same table then just drag and drop them into the columns.
The way a matrix works from my understanding in PowerBI is;
Rows are just the headings/categories of the values.
You might need to also go into the format tab, values, and make sure show on rows is on.
For example, let's say our value headings are rainy days and sunny days.
Your columns are months.
The rows will be the 2 categories.
The values will be the values.
As concatenation and "&" does not work in Power BI directquery you can use the below one:
[New_column_name] = if((table_name[column_name]="A" && table_name[column_name]="B"),"AB","NA")
Thanks,
Sachin Kashyap