Is there a way I could use a parameter of List as my crosstab column?
Yes you can do this in Ireport, You can do this in two way, either create a new cross tab report, while creating cross tab you can select parameter for rows and columns value, either edit the report and select that column where you want parameter value and there you can change the column by editing expression.
Related
I'm not quite sure whether the description for the column I'm working on is proper, so bear with me.
I got an Interactive Grid that I'm adapting, and it's supposed to work such as this:
It should select a name on the first column (an autocomplete field), followed by 3 columns, each with a checkbox. I need to order the data in the grid by the name in the first column. Problem is, I can't use an "order by" in the select statement, so I need to use APEX's "Column sorting".
The column for the name, however, isn't shown in the list to select the order by value. I only get the 3 checkboxes as an option to order it.
I tried having a copy of the name column, but this time, hidden (and not an autocomplete field), but it doesn't work either. Is there a workaround for this?
The IG will only allow you to sort by columns that have been enabled for sorting. By default, only columns of certain data types and maximum lengths are enabled for sorting, but you can override this for each column in your IG definition.
I have a very basic question in Power Bi I am trying to build a report in which I am using a Matrix Visual to display some data in the below format, However, I want the most recent months data to show first dynamically and then the following months after that, in this case show May first instead of Jan, Apr second instead of Feb and so on and so forth.
You can perform these below steps to achieve your required output-
Step 1:
Add a new custom column "month_name" (if not already available) in Power Query as shown in the picture. Please use the Date column from your source go generate the new column.
Step 2:
Add another custom column "year_month" as shown in the below image. Remember the target is to get the value like - "202001" (YYYYMM) from the date value. You can achieve the same with other conversion option as well. Please use the Date column from your source go generate the new column.
Step 3:
Change type of "year_month" column as Whole Number and get back to your report by clicking on the "Close & Apply" button.
Step 4:
Create a custom column "Rank" in the table as below-
Step 5:
Sort the "month_name" column using newly created column "rank" as shown in the below image-
Step 6:
Finally use the "month_name" column in your Matrix visual's column and this should be come up with your required output.
There is no option to sort matrix headers in power bi.
However there is a trick that you can apply in order to achieve this.
First Create a new column that referes your month column:
DescMonth = Table[Month]
Then create another column that keeps the order of the new column (you will need an ID Month column for this so be sure to create one if you haven't yet):
DescMonthOrder = - ( Table[IdMonth] )
Then sort the DescMonth column using the DescMonthOrder column
Finally use the DescMonth column in your matrix instead of the regular month column.
This way you will be able to achieve the following result:
I need to add calculated column that would ignore values selected in a slicer:
I tried:
all users = ALL(Sheet1[UserName])
But it gives me an error: A table of multiple values was supplied where a single value was expected.
A calculated column cannot be affected by a slicer but that's not what you seem to be referring to.
It appears you are trying to create a visual that lists all the users. For this, you can put Username on a table visual and disable the filtering from the slicer by going to the Format tab and clicking Edit interactions.
If I understand you correctly, You have to use ALL() Function by
creating new table Under the modelling tab
I have an interactive grid in apex, all column are linked to a database column and all works fine. But I want to have another column with extra info and NOT linked to a database column. I can't figure how to do that and if it's possible.
Case: I have a date column, but I also want a column with the operational year. Something like that.
Year | Date
-------|------------
2020 | 2020-05-05
2020 | 2020-01-25
2019 | 2019-08-12
2018 | 2020-07-11
The year is only as reference and I don't want to save it. In an interactive report it would be easy as adding it to the sql query, but in a grid it's another thing...
You can add it to the query and then select query only in the column attributes. Then it will be displayed as a column but will be ignored while saving data
Help text:
Query Only
Specify whether to exclude the column from DML operations.
If set to On, Application Express will not utilize the column when executing Intereactive Grid - Automatic Row Processing (DML). For example, you should exclude columns whose definitions include concatenations, inner selects, function calls, or a column in an updateable view which is based on an expression.
All columns which need to be included in any INSERT or UPDATE statements must have this option set to Off.
Note: Columns of type Display Only are also included in the Automatic Row Processing unless this option is turned On.
I have imported an excel file for creating a PBI report. In this excel, there is a cell which contains a date. I want to create columns on the basis of this cell.
Like if the cell contains 01/04/2017 then I would like to generate column names like Apr-17, May-17, ..., Dec-17, Jan-18,..., Mar-18.
If there any way to do this?
I'd say just create a step by step procedure in edit query to pivot the table.
First you'd only get distinct values, then pivot and then promote to headers.
I don't think you need a column per month.
1) Create a query to import your file
2) In Query Editor, select the query, then "Transform" -> "Use First Row As Headers"
3) "Transform" -> "Unpivot Columns"
4) Rename columns as desired
Now you have a table in a comparable/filterable/queryable form. You didn't specify what you need it for but having a column per month won't work well (for various reasons). PowerBi doesn't work quite like excel.
If you really wanted a column per month, you could stop at step 2) but I would advise against it.