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
Related
I want to implement on PowerBI a calculator that I developed in Excel.
Basically, it works this way:
I have a list of Dates:
I have a Database that combines in a key the name of the source with a date:
I have a calculation table where I apply into a Dropdown menu value an entire column, it combines with the Source, forming a key, where I can calculate the Source variation choosing two dates (an initial and an end date).
I would like to know how can I apply it into Power Bi, specially step 3. With a Dropdown menu that is applied to an entire column "dynamically"
You can do this with Calculation Groups. To use them, you have to use the free external tool Tabular Editor.
Setting dynamic date ranges like this is a very common use for Calculation Groups.
Here's an example of a prior year Calculation Item:
CALCULATE(SELECTEDMEASURE(), SAMEPERIODLASTYEAR(cal[date]))
You can create multiple Calculation Items to define all the various periods you need.
You can then set the calculation group as the field for a dropdown menu, and each calculation item you defined will be an option in the menu.
Here's an intro article. This same website has the best training on calculation groups you can find online. (And it's all free.)
I have data like this:
It comes from REDCap, and as you may be able to tell, the data in the far right columns are repeated variables about each "protocol_title" (the far left column). I.e. "Love it" and "I want a disc instead" are both about "study 2"
I've imported the data into Power Bi and currently I have this:
What I'd like is for the top left visual to only have one row per study (with columns such as principal investigator and method of image transfer, i.e. columns that had data in the first row) and a visual on the lower left with all the right-most columns.
By switching the top visual from a table to a matrix I can kinda accomplish this:
But it adds a bunch of unnecessary columns. As an alternative I thought I could add a filter to the top visual that would filter to "redcap_event_name"=="protocol_information" which would only be those top rows.... but given the visuals are linked, if I do that it removes everything from the bottom visual. I'd like to keep the link between the visuals so that if I select "study2" in the top visual, it'll highlight relevant study 2 information in the bottom one.
So my question is: what's the best approach for making the visuals I want? Are there special settings for visuals? Do I need to do something to the data first in the query? How should I go about this?
You might want to rework you data structure. At first glance, your flat source table could be parsed into two tables :
Protocol
Survey
This can be done in PowerQuery.
For Protocol :
Select columns A to R.
Filter on redcap_event (?) starts by "protocol_info"
Delete empty rows
For Survey
Select columns A (to keep the protocol ID and be able to link both tables), T and U.
Filter on redcap_event (?) starts by "survey"
Delete empty rows.
You should end up with the two table with a one-to-many relationship between Protocol[Protocol_ID] (column A) and Survey[Protocol_ID] (same)
And it should make everything much easier: visuals, calculations...
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], ", ")
I have a scenario where I am using date and country slicers along with maps in my report along with some stacked charts.
When I click on the map for one country it filters the data based on that country I have selected but the filter is not reflected in slicers.
Is there any way that I can use the map only to display the counts without having select, in other words, no selection allowed on the maps?
Any suggestions would be helpful.
Thanks!
Go to Format tab and select Edit Interaction option as shown in the below image. Now select your Map visual and set Filter = None in other visuals you don't like to interact when click on the Map.
I have a line chart with two lines that show attendance scores for each gender (male and female). I would like to only apply/filter one of the lines while the other is disabled from filtering.
This will allow viewers to compare the overall numbers (both genders) with the filtered numbers (each seperate gender). Is there a way to do this?
You can do this by creating a slicer to select between different measures.
You would have to create two new measures (One filtered for male data and other filtered for female data). Using the slicer you can switch between the two measures and achieve what you are looking for.
The following link details the steps:
https://www.burningsuit.co.uk/blog/2018/03/dax-how-to-use-a-slicer-to-select-different-measures/
Sorry if i am wrong but why are you not summing the both attendance in other column and then use it as you want (else might be i dint got your question correctly)