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.
Related
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.
Hi
I have a page with 3 charts and a table (product and other 2 columns). Table works like a slicer/filter. When user selects the product, charts show the data. If nothing selected charts are empty but the area remains (measure uses HASONEVALUE). I was requested to hide the chart area/ greyout if nothing is selected. I thought of bookmarks (if item in a table is selected -> show all visuals, if nothing selected -> hide 3 chart visuals). Is there any way to trigger bookmark on table row selection?
BR
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 would like to get a single value from "table2.MappedValue" for every record in table1 in Power Query Editor,
I have two tables, that have a many to one relationship, table2 is just a mapping table:
table1: ID | Values
table2: ID | MappedValue
when I try Table.Column(#"table2","MappedValue"), I get a list and not a single value.
I can do that from Table tools-> New Column, but I was wondering if that is possible in Power Query Editor.
You can do this by merging queries. In the query editor go to Home tab and select table1 click on merge and merge with table2. Next step is to expand your new column by selecting the dubble arrow in the column and select the column you want.
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.