Is it possible to discretize selected column in weka ? I have 42 columns in my data set and I want to discretize (divide in intervals) only longitude and latitude but all columns are discretizing.
There is a property in Discretize (attributeIndices) that allows you to specify the attributes to apply the filter to:
Just enter the attributes here and you should be good to go.
Hope this helps!
Related
The above is the expected matrix in Power BI. I have to get the additional heading "MED" and "RX" for the columns "Paid" and "Unpaid" as shown in the matrix.
The above is the actual table schema, which is connected to get the data into the matrix.
How to get the column heading "MED" and "RX" in Matrix?
You should put MED/RX and Paid/Unpaid attributes in separate columns, so make sure the data is transformed to look like this:
Then put Insurance to the rows of the matrix, Type and Paid as columns and Values as values, and enable the drill mode:
I'm "bugging" to transform my datas to something usable.
For the moment, a datasource provides me a table where a column contains dates, following by 24 columns representing each hours. In this 24 columns, for each date (each row) I've a total of phone calls.
I want to show the hourly repartition. So, my original datasource is not really usable ans need to transform it with something where there is a column "hour" (a simple index from 0 to 23 or 1 to 24) and a column with the total call for each column from the original column. But I'm a lot confused to do it because I don't have a way to create a relationship. Like this :
Someone have any idea to help me? Thanks in advance
I would unpivot the data source and then create two dimensions (Calendar) and (Time).
Hi,
I'm trying to add a calculated column in my MergedTable table that will multiply the Time column by the sum of the indicator in the TeamLeave when the week ending dates and the name dates are the same but I'm not sure how or what functions to use(I've tried a number at this stage).
Could anyone provide me with assistance on this?
Thanks,
This:
'MergedTable'[Time] * CALCULATE(SUM('Team Leave'[Indicator]))
The CALCULATE is necessary to perform a context transition (turning the "current row" of 'MergedTable' into a filter that will propagate to the 'Team Leave' table).
I am trying to write a code for a data table in Powerbi that averages values of a table but categorizes them based on ID and Project but at the same time exclude a value from another column. Below is what I am trying to accomplish. Excluding Type "II" and averaging the values based on category columns [ID] and [Project]
Below is the code I am trying to write. What would be the best solution?
AVG = Calculate(AVERAGEX(Filter(Table, Table[Type] <> "II"), Table[Values]), ALLEXCEPT('Table', 'Table'[ID], 'Table'[Project]))
I have a table that has (simplified) the columns CustID, Action, Date
I then have a matrix visual that has Action as Columns, CustID AS Rows and Count(Action) as Values.
Now I need an extra column that sums only some of the Columns, not all like the Total. In Excel this is =SUMME(B11:K11), where K12 and K13 are the columns not to be summed.
Is this possible in PBI Matrix?
You can simply create a measure.
(new_measure_name) = 'table'[field to add] + 'table'[field to add]
After you create the measure you can add it to the matrix and double check you math that it adds up like you want.
Good luck!
my problem was, that I had a table column in the column section of the matrx visual. than, when I add a measure it is only available in drill, not as extra column. I solved it with pivoting that column and use the new columns in data section. than I can add measures to the data section and they get also new columns.
would be nice, if I could use the column section and add measures