I have a tabular form which users will update on a yearly basis for their targets. Each product will have three rows: a row showing sales (last year), a row showing sales_target (sales man will enter) and a manager figure (what the manager expects the sales man should sell). The user should only be able to view sales from last year and the managers figure, and be able to enter into sales_targets. I know how to make columns readable but stuck on how to make a row readable if its not manager figure and sales.
There was some javascript that i could maybe use from another post however that is for a column rather than a row, could something similiar maybe used? Link here
I have made a demo here:
Link:apex.oracle.com
workspace: apps2
user: user
password: DynamicAction2
application name: Application 71656 Read only Rows for Tabular Form
Yes, something similar can be used (execute this on page load):
$('#TAB_REP').find('td[headers="TYPE"]:contains(manager figure)').siblings('td').children('input').attr('disabled', 'disabled');
where TAB_REP is static ID of your report.
I have try to use more simple way - by defining attribute of the column, but in tabular report, apex dosn't replace #COLUMN# strings. Hope this is not a bug.
P.S. I've changed your demo.
Related
I have a dashboard that looks like this in PowerBi:
Almost every slicer and visual on this page comes from the "visits" dataset. That dataset is 70,000+ rows, where each row stands for a single patient visit to the hospital. There are a few relevant columns for this question such as: "subject mrn", and "protocol_no" (the study they're on).
Well, elsewhere, I have a dataset called "Data Managers" that is the staff assigned to each protocol. It has relevant columns of "subject mrn", "protocol no" and "staff name"
I have these datasets in my power bi like this:
When I connect these datasets by dragging in between them, Power BI warns me that they are many-to-many relationships. This makes sense because:
Lets say staff member John is the data manager for patient 12345 on study x
Well patient 12345 might also be on study y, and on that study, staff member steve is the data manager.
Also, other patients on study x might have other data managers.
So I need to connect these datasets in a way that when I filter to John, I only get rows back from the visits data where John is the data manager for that combination of subject AND study.
When I just drag across from protocol no and subject mrn like this
it doesnt work. The dropdown appears to filter to lists for john, but when I check for accuracy, its people with totally different data managers. Any idea what to do?
If anybody is looking at this, theres probably a way to do it with managing multiple relationships, but I ended up creating a concatenated column in each dataset of "Protocol, subject_mrn" and then linking those new columns together.
I am new here, so apologies upfront if my structure is not correct, will try my best to make sure the outline is as neat as possible.
Problem
I have a powerBI report that consists of a home page and sub-report. The one report is called Home which shows a summary of all the employee type output information and the other is Employee type which shows information per type. I am using PowerAutomate to export those reports (consolidated) and save them into a sharepoint. The mechanism is working as intended for the home report, but is not for the Employee sub-report.
I have noticed that in the Employee subreport I have a filter for Employee types which has:
{Half-Time, Permanent, Contractor, Vendor-Contractor}
Each selection in the drop down will present different results in the report.
My PowerAutomate flow is an approval process for stakeholders to sign off the reports per Employee Type. when ever I trigger the action button on my PowerBI report it runs the flow and saves the Export to file for PowerBI report to my sharepoint, with Home page correct, but Employee sub-report page always showing the first selection Employee type within the array(Half-Time), where I want it to show the report based on the user selected results.
Here are the inputs I have added to the Export PowerBI action in PowerAutomate
I am not sure what I am doing wrong, I have tried a myriad of different options even tried the filter for EmployeeType, but it creates a loop in flow and doesnt yield any of the results I need.Any help would be much appreciated
I tried adding the report sections in the PowerBI action which did consolidate a PDF for the Home page and Employee sub-report, but kept showing the fist item in the filter selection as opposed to user selected item with respective results.
I also tried initializing a variable to show user selected item in the Employee type array, this did nothing, same results as above.
I have a report like this:
It's got three tabs, based on three separate SQL queries (and Power bi queries) of our database.
One tab is based on all the subjects we have in our program
One tab is a query of a database with all the staff associated with all the
subjects in our database
The third tab (that I am working on now) is from a query of all the subjects in our database that need reconsent. The way I envision all three tabs working is that you start in the first tab, filter to the subjects you care about, and then those slicers/filters affect the next two tabs.
My problem is:
I dont know how to get the slicers/filters in the first tab to affect the others. I was able to get the second tab linked by just merging those two queries (there's pretty much 100% overlap) and just using "one" dataset for both.
I've tried "manage relationships" and created a relationship between the first query subject mrn and the third query subject mrn... but even though there's a 'relationship' between the two... thats not enough for slicers on the first tab to affect anything on the third tab. How do I do that?
I asked this on the power bi forum as well and was given some followup questions that I'll add info from here:
The sync slicers setting is on:
And if I go look at the table on the third tab, it says a bunch of slicers are currently affecting it:
(I changed the slicer values between taking these screenshots, dates look different in each)
Also here is a photo of the relationship between queries in the model:
So to repeat/rephrase:
Let's say I use slicers on the first tab to filter to 10 people coming in the next week (which are in one query). Lets say 1 of those people exists in the third query as someone who needs reconsent. How do I get only that one guy to show up on the third tab with his info from that query?
I have been trying to find an answer to my problem but to no avail, so hoping someone is able to provide some ideas / advice on if this is possible and if so, how to go about it? I've tried various things and none have worked.
We create views within SQL and then connect to them using 'Import' from the Data Connectivity Mode when connecting to the SQL Server from within Power BI. Within the view, we use tables that contain a 'Valid From Date' and 'Valid To Date' for each row of data, so when a change occurs a row is closed off and a new row is created. This is so we can limit the rows of data within the table.
When trying to create a report within Power BI, we need to make it that the end user can use a data drop down list to select a date and the data within the whole of the report shows any rows that the selected date falls on or between the Valid From and Valid To dates. We use Cards, Tables, Matrix and Charts within our reports, so all would need to reflect the date selected by the user.
I have tried various methods that I could think to get it to work but each have had limitations where it either doesn't work or only partly works.
Any help / advice on this would be really appreciated.
Many Thanks
Jon
I currently have two tables: A "Send ID" table and an "Affiliation Table" each based on a column of customer IDs.
No columns have purely distinct values so I cannot create a many to one relationship.
I would like to visualize the Send IDs based on the Affiliations as shown here:
Desired Output
I can work with either having the Send IDs repeat per affiliation in the new desired table or have them unique per affiliation - either way works with me.
Any help would be appreciated.
Thank you
noyraz's solution in establishing a many to many relationship based on the customerID should suit your needs.
If you are required to find out where a customer appears in the affiliation table or sendID table, I highly recommend performing a full outer join in the query editor.
Using the picture below, right click on any of the tables, and select reference.
Reference Screenshot
Then rename the table if you like
Click on Merge Queries
In the drop down, select the other table you didnt reference, then click on both customerIDs
select full other join.
Full Outer Join labled screenshot
Expand the new table column
deselect the ID if you like.
Expanding Column Screenshot
If there are occurrences where they don't appear (useful for sending and delivered tables), you can do visual level filters to see where either the Affiliation or SendID is null/blank.
when you create Many To Many relationships like Here
all you have to do next it's just visual this like you desire
hope I understand your question right