Creating a 'parameter' that toggles between columns - powerbi

I'm using Power BI to build a bar chart to show sales split by a parameter which the user can select. I'm trying to find a method that lets the user toggle which parameter he wants the graph to be split by. For example, I have Column A - "Fruits" which is "Apples, Oranges, Mangoes" and Column B - "City" which is "New York, Chicago, Los Angeles". Using this, I create a bar graph which shows sales quantity, and split it by column A (Fruits), so that it shows sales of Apples, Oranges and Mangoes.
I want to create a drop-down filter/parameter which allows me to toggle the view between "Fruits / City" so that the bar graph shows the split by either Fruits or City based on what is selected in that drop-down. I know there is a very easy way to do this in Tableau by using the "Parameter" option, but I cannot find a way to do this in Power BI. Does anyone know if there is a way to do it in Power BI?
Thanks for any help!

You can add both Column A and Column B to the Axis of your bar-chart (or any chart). By doing so you create a heirarchy and the visual shows on the right top the following:
The dubble arrow will bring you to the next level (Cities) in your case where are the split arrow brings you a level deeper, all fruits in each city.
Now by adding a slicer you can even create a dropdown of cities for further filtering, the slider will interact with the bar.

Related

How can you add more sheet tabs to existing IF/SumIF Google Sheet formula?

I'm trying to use Google's monthly budget template and alter it so I can get a full view of the year. I have tabs Jan-Dec made but I can't figure out how to add them to the below formula. When I try, it tells me that the IF can only use 3. The areas Expenses and Income in the screenshot should total up the Amounts (column C) with their respective category (Column E).
The same would be said for income using Columns H and J.
=if(isblank($B36), "", sumif(January!$E:$E,$B36,January!$C:$C))
Here is the link to my sheet https://docs.google.com/spreadsheets/d/1MTL3xdN-0W4vS7e_yO1C4qkFAxlsxhx3SLXyml78qOc/edit?usp=sharing
delete E28:E41 and try in E28:
=BYROW(B28:B41, LAMBDA(b, IF(b="",,
IFERROR(QUERY({January!C:E; February!C:E; March!C:E;
April!C:E; May!C:E; June!C:E; July!C:E; August!C:E;
September!C:E; October!C:E; November!C:E; December!C:E},
"select sum(Col1) where Col3 = '"&b&"' label sum(Col1)''", ), 0))))
Update:
In order to make it cover the whole range of Categories with the same principle of having the flexibility of a list of Sheets' Names, you can use this formula:
=INDEX(IF(ISBLANK(B28:B41),"",REDUCE(,A28:A,LAMBDA(a,sh,
a+SUMIF(INDIRECT(sh&"!$E:$E"),B28:B41,INDIRECT(sh&"!$C:$C"))))))
I've set it in your sheet too in a new column to the right
If you stablish a list of sheets' names in a range, you can use this formula:
=if(isblank($B36),"",REDUCE(,A2:A,LAMBDA(a,sh,
a+SUMIF(INDIRECT(sh&"!$E:$E"),$B36,INDIRECT(sh&"!$C:$C")))))

Column filter in Quicksight

I m new to quicksight, I am trying to filter column in the quicksight, same way we do in excel.but i m getting blanks or not able to find how to filter.
Want to see only family which has gap point value as review,i.e the filter should only show (d,f) and not any other value or blanks
please help !!
Want to see only family which has gap point value as review,i.e the filter should only show (d,f) and not any other value or blanks
please help !!
If you are trying to filter a visualization, you need to:
Click the visualization to select it.
Click the "Filter" button on the left of the screen.
Click "Add filter"
Select the column you want to use for the filter (in this case "gap point value").
Edit the filter, and select the value "REVIEW", then click "Apply".
https://docs.aws.amazon.com/quicksight/latest/user/add-a-filter-data-prep.html

Is there a way to get people name in calculated column in MS LISTS?

I am working on a Leave Tracker in MS LISTS, where in the Calendar view I want the Proxy name to be displayed.
I have searched more than 100 Links and I couldn't the answer.
Do we have any workaround for it?
Thanks for the answer in advance.
According to my research, the “Person Or Group” column is not supported in the SharePoint Calculated column
SharePoint Calculated column supports the following types of columns:
Single line of text
Choice (menu to choose from) | Single Selection
Number (1, 1.0, 100)
Currency ($, ¥, €)
Date and Time
Yes/No (checkbox)
Calculated (calculation based on other columns)
Task Outcome
External Data
Content-Type Columns
We recommend that you can create a Single line of text column to fill in the Proxy Name.
Then, you can create a Calculated column which concatenates the Title, and Proxy Name(Single line of text) columns,
Modify the Calendar view and change the "Month View Title" column to your new Calculated column.

Conditional Formatting based on a dropdown in another sheet

I have a Query function in Sheet2 which is based on a dropdown selection in cell I11 of Sheet1. In the Sheet2 Query, I want to automatically highlight the name selected in the Sheet1 dropdown. Per my example below, if 'New Zealand' is selected in the dropdown I want New Zealand to be highlighted like this:
I have tried MATCH, EXACT, INDIRECT and combinations of these but cannot get any to work. I would really appreciate some help.
on range A2:F use this custom formula:
=COUNTIF(A2, INDIRECT("Sheet1!I11"))
or:
=REGEXMATCH(LOWER(A2), LOWER(INDIRECT("Sheet1!I11")))

How do I set up a "Type In" filter or slicer in my Power BI report?

I have a list with 13,000 numbers (customer IDs) and would like to filter based on only one. Currently, I need to scroll down the entire list to select my customer. Is there a way to type in the customer number and make the entire report filter based on it?
In the visualization pane, if you scroll down you will see 'Filters'.
Drag your CustomerID to 'Page level filters' or 'Report level filters',
depending on your needs
Expand the CustomerID field
Choose 'advanced filtering'
In the advanced filtering choose 'is' and type in the value of CustomerID (i.e. 111111)