Percentage in formulas
Hello! I'm trying to work out how to get a percentage value in a formaula. The results are not what I'm expecting so i imagine it's my maths letting me down.. The end result needs to be a percentage count of all safeguarding events ever. What my formula is currently looking like is: ([# of unique EventUID], [Was the incident a safeguarding?]) / ([# of unique EventUID]) * 100 With [Was the incident a safeguarding?] being filtered to TRUE. This gives me a result of 266% Base values for objects are: [# of unique EventUID] = 19,761 [Was the incident a safeguarding?] N/A = 18,321 FALSE = 876 TRUE = 564 Any help would be appreciated23Views0likes4CommentsHide Widget based on grouped by Column Values
Hello I'm looking to hide a specific widget id if a specific value exists within a column value. I started with dashboard.on('widgetrefreshed', function (se, ev) { widgetList = ['682f7ab1602b5d7f74c97e6f', ] if(widgetList.includes(ev.widget.oid)) { $(`widget[widgetid="${ev.widget.oid}"]`).closest('.dashboard-layout-subcell-host').addClass('dontshowme-parent') } }); but I am not sure how to check if the value for a column called test_benchmarks contains 'ctv'75Views0likes8CommentsHelp with BloX Widget
Hello, I am hoping to get some guidance on how to use BloX to return a message. I have a field in a table that returns a value of Yes or No. I want to the BloX widget to return a message if the value is No. If the value is Yes, I want the BloX widget hidden. I have exhausted my AI effort attempts. It appears this is something the BloX widget should be able to do, but I just can't get it to work at all. Any advise would be helpful.39Views0likes4CommentsCheckBox using Blox without Action Button
Hello everyone, I have created a Blox widget which shows a list of values with checkboxes. I am trying to make the check boxes "actionable", meaning that when a checkbox is ticked, then my dashboard filter adjusts. I have tried to utilize this widget script, but it doesn't seem to work: widget.on('processresult', function(se, ev){ ev.result.unshift(allObject) }) widget.on('ready', function(se, ev){ var filterName = 'Chain Name' var select = document.getElementById(`data.filters[2].filterJaql.members[0]`); dashboardFilter = prism.activeDashboard.filters.$$items.find(el => el.jaql.title == filterName) if(dashboardFilter && dashboardFilter.jaql.filter && dashboardFilter.jaql.filter.members) { select.value = dashboardFilter.jaql.filter.members[0] } select.addEventListener("change", function(e){ if(e.target.value == "All") { filter = { "explicit": false, "multiSelection": true, "all": true } }else { filter = { "explicit": true, "multiSelection": true, "members": [ e.target.value ] } } dashboardFilter = prism.activeDashboard.filters.$$items.find(el => el.jaql.title == filterName) var filterOptions = { save: true, refresh: true, } dashboardFilter.jaql.filter = filter prism.activeDashboard.filters.update(dashboardFilter, filterOptions) }); }) Can anyone help me with this?Solved101Views0likes6CommentsSingle Filter against multiple columns
Hello Experts I wonder if there is way to build a single filter on Dashboard that interacts with 2 different columns in the database? Here is an example 2 columns in table:- - primary City - secondary city On the dashboard level, we would like to build a single filter called 'city' which should filter against both of these columns using OR condition (eg: select sum(sales) from customer_orders where primary_city='Toronto' or secondary_city='Toronto'Solved756Views0likes5CommentsFiltering within a function
Attempting to create a filtered value by editing the formula. I want to see Count of total people for where risk is high. Field 1: People (All peoples name linked to a risk group) Field 2: Risk Group (High, Medium, Low) COUNT([People], [Risk_Group]) I right click on field [Risk_Group] then I edit the filter for the field as High. But I get a Syntax Error:Solved414Views0likes2CommentsDate Granularity Affecting Title Widget
I am using this solution from intapiuser: https://community.sisense.com/t5/knowledge-base/change-date-granularity-of-a-widget-using-blox/ta-p/8916 to try and get a widget that this BloX affects to update the title of the widget. Attached is the image of the example I am trying to achieve. So if the user picks Years or Months or Days then the title will change by Number of Orders by Years/Months/Days Respectively I have attempt to create code that would affect the widget title listening to dynamicGranSwap from the Action we created from the above post but to no avail. widget.on('ready', function(w) { function updateTitle(granularity) { let granularityLabel = { "years": "Year", "quarters": "Quarter", "months": "Month", "weeks": "Week", "days": "Day" }; let newTitle = `Number of Orders by ${granularityLabel[granularity]}`; console.log("Updating Title to:", newTitle); // Debugging w.title = newTitle; w.refresh(); } prism.$scope.$on("dynamicGranSwap", function(event, data) { console.log("Received Granularity Change:", data); // Debugging if (data && data.dategran) { updateTitle(data.dategran); } }); updateTitle("weeks"); }); Any suggestions DRay Liliia_DevX rapidbisupport harikm007Solved622Views0likes5CommentsHow to limit use of a Blox Button based on a user
I am working with a dashboard that uses multiple JTD BloX widgets, where I want one of these JTD BloX Widgets to hide based on a user who is accessing it. This will be set for multiple users, but I wanted to see if there are any solutions out there. DRay Liliia_DevXSolved807Views0likes7CommentsSwitchable Break By Plugin/Widget/Script
I have a Bar Chart that is Revenue per past 12 months. I have 5-6 different fields that my users want to view revenue over the past 12 month “Broken by” or “categoried” by Meaning, lets try a stacked area chart, or a column chart etc… they want the ability to specify a the bar should be broken up by: Ship Type Work Type Billing Type I can build all these very easily, but nothing I’ve seen in widget scripts or blox seems to do what I need, even this… https://www.sisense.com/marketplace/switchable-dimensions/?categories=all&type=addons&publisher=all&cost=all&sort=A-Z&searchString=switch https://www.binextlevel.com/post/switchable-measure-buttons Is there a widget script that I can add to provide a dropdown somewhere to change this? or can i create these as bloX actions, but then how do i make a BloX bar chart??!Solved2.2KViews0likes4Comments