it is possible to use page item (text field) to change pagination of interactive grid?
e.q Interactive grid is divided into 10 pages and i can input number from 1 - 10 to change pagination.
Thank you in advance
Here is an example on the EMP table. I'm showing 4 rows at a time with a select list to change pages:
Create page item P106_PAGE_NO, type select list with 5 rows, return values 0 to 4.
Create Classic report with source:
select EMPNO,
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO
from EMP
ORDER BY ename ASC
OFFSET NVL(:P106_PAGE_NO,1) * 4 ROWS FETCH FIRST 4 ROWS ONLY
Page items to submit: P106_PAGE_NO
Create a dynamic action on change of P106_PAGE_NO with a true action of refresh the classic report region.
That should be it - change the 4 to whatever nr of rows you need. Make sure that the "Number of rows" attribute of the classic report is set to higher than the nr of rows per page you have in the query.
Related
I am learning power BI , for one of my requirement i want to filter table based on the selected value from the slicer and show it in different slicer.
So, here there are 4 slicer and based on selection of one slicer i have to populate the data for the 2nd.
My Table Looks Like
id Name ParentId
1 A null
2 A.1 1
3 A.1.B.1 2
So, i have only 1 table where i have to search the element by id -> parentId and then populate it in the next slicer.
e.g: if We select A then in the next slicer we should show A.1 since , id --> 1(A) = ParentId --> 1(A.1)
I tried to create separate table and then link the id with parentid in the mapping section , this concept is working but not the problem is .
If we select A then in 2nd combo A.1 and A.2 is displaying , but as we click on A.1 on the 2nd combo and then try to click on the elements on 1st combo here in our case A , then the filter is not working properly .
If appending the elements from previous selection + New selection
e.g:
Slicer 1 Slicer 2
A -- (1,2,3)
B -- (4,5,6)
Now , after clicking on A[1st Slicer] it shows (1,2,3) [2nd Slicer]
After clicking on 2 [2nd Slicer] --> showing some elements in [3rd
slicer]
But, now again click on B [1st slicer] --> [4,5,6,2] (Wrong value)
since we selected 2 its appending with the new selection only if we
click on the 2nd slicer.
So, as an alternate solution I tried to filter the selected value which is measure from the table and then show it in the list.
My expression:
Table = FILTER(TableA, TableA[id] == Tableb[selectedId] )
Tableb[selectedId] --> is measure
Table = FILTER(TableA, TableA[id] == "8DE04141-E5B6-49E1-814A-ADB4C6FF5DCF" ) --> selected Id
1st statement is not showing any value but the 2nd giving me the result when i am hard coding value , please suggest me what i can do here.
i want to filter table based on the selected value from the slicer and show it in different slicer.
You don't need DAX for that. You just set up the correct relationships and set filters and slicers in the report.
I'm trying to display all of the distinct values within this table (there are many other columns in this table) and show how many rows each distinct value shows in.
I have tried to use group by but this does not work. It needs to be filterable by country from another column but i can do that by page filter.
I am trying to show what the top 5 associations are in terms of appearance.
enter image description here
Put the 10 columns in a Table visual. Then create this measure and add it too. Then sort descending on Distinct.
Distinct = COUNTROWS('Your Table Name')
To see only the Top 5, go to the Filter pane, and pick the first column and set the Filter type to Top N, and then Top 5 by the Distinct measure.
I have a table visual with a date column and I have a requirement to highlight the top 2 rows. The data on the table visual is sorted desc by the date column.
I need help to conditional format the background color for the top 2 rows.
I tried searching for a way to do this but no luck.
You can calculate the rank of the rows and use conditional formatting to highlight the top 2 rows. But first, we need to define what "top 2 rows" means. You said it is sorted by date descending, so I will assume that "top 2 rows" means the rows with the 2 biggest dates. I will use a measure, which will respond to filters applied on the data. Then we will highlight the rows with rank 1 and 2 (assuming dates are unique in table's rows).
Make new measure like this:
Measure = RANKX(ALLSELECTED('Table'); CALCULATE(SELECTEDVALUE('Table'[Date])))
Where Table is your table name, and Date is the name of the date column. This will give you a number (1, 2, 3...) where 1 is the row with the biggest date, 2 is the second biggest date, and so on.
Then for every field shown in your table, add the following background color condition (right click each item in the list of fields and select Conditional formatting -> Background color):
Set Format by to be Rules, select your measure in Based on field and ad condition > 0 and <= 2 to set the desired background color. Repeat this for all fields shown.
I have an interactive grid where on click of a button , I insert rows into the table of the interactive grid.
Now when I edit for few columns of the grid - (These columns are of type Popup LOV), the values get inserted into other columns as well.
For eg : If the table has columns Qty, Item, name1 , name2 and there are 2 rows in the table where only qty and item are filled and name1 and name 2 are null.
If I edit name1 which is a Popup LOV, the same value is displayed into name2.
Please help!
My mistake! I didn't set the primary key of the IG to be a unique key,hence the occurrence of the above mentioned issues.
I have been having trouble trying to filter on a dimension table that is larger than the fact table.
I am using Power BI for presentation and using an endpoint on an ssas tabular server, I am using direct query.
I am trying to filter on a tag that is sat on the subitem of an item which has a valid column that results to true/false. An example of the dataset could be like this:
https://jsfiddle.net/koLyu4ad/
The Resulting HTML displays sample Data
I want to dynamically filter on sub-item tags, so if I create a slicer with the tags, and you select tag-1, only item 1 and 2 will show, if you select tag 2, only item 2 and 3 will show.