In tableau i'm trying to create a KPI based on the "Number of disciplines entered by continents", so i'll have for example a pie chart of continents with a figure in each saying how many disciplines have entered.
I am inputting this in my KPI as "WHERE [Name] CONTAINS([Discipline])" which i'm hoping to display all disciplines in a country but i'm getting an error as shown in the screenshot.
Related
I have one data table from which I have to calculate 2 different KPIs, each KPI is tied to different date column.
"Creation Date" for KPI "Net Satisfaction Score" calculation and "Uni Date" for KPI "Response Rate" calculation.
"Date" from "Date table" used as field to filter time periods so I need to have a relation to that field.
table design
If I filter for results in September'22, I want to see "Net Satisfaction Score" calculated from all Ids with Creation date in SEP'22, and I want to see "Response Rate" calculated from all Ids with UniDate in SEP'22 (this means Ids 00004, 00007, 00009 and 00010 are not to be considered in Response Rate calculation).
What I have tried already:
Using more queries - one for Response Rate (with relation UniDate <-> Date) and second one for Net Satisfaction Score (with relation Creation Date <-> Date).
This worked, but if I want to go more into detail and see the results by country, the numbers don't show up correctly, as there is no relation on "Country" or whatever detail I want to split the result by.
Making relation based on IDs between the queries mentioned in "1)" - circular dependency error.
I am really out of ideas, but maybe some of you tried to solve this kind of issue already.
Sounds like you need to use USERELATIONSHIP within your measure.
You will need something like this
Net Satisfaction Score = CALCULATE(Sum('Net Satisfaction Table[Score]'),
USERELATIONSHIP('DateTable[Day]','Net Satisfaction Score Table[Created Date]))
You can obviously use sum, count, average...whatever you need to do with your score. You also need to make sure that both dates - Created Date and UniDate have an inactive relationship back to your Date Table.
Repeat the same measure example for your other measure. USERELATIONSHIP works perfectly on inactive relationships and only works within CALCULATE operation where you tell PowerBI which date to use in this calculation.
I'm struggling with PowerBI to group 2 columns. But when using group by function I get "The Expression Refers to Multiple Columns". When using:
SUMX(VALUES('Table'[OrderNumber]), CALCULATE(SUM('Table'[OrderValue])))
I get error message: "A circular dependency was detected.
Anyone know how to group the raw data example from the image to the desired table in PowerBI?
Price product should be grouped by product and summarized for all orders.
Order value should be grouped by product and summarized for total order value.
I'm trying to calculate a due date field based on two other fields in a SharePoint Online list: [Created] and [Priority]. [Created] is auto-populated when the user creates the new list item. Easy enough. The user selects a [Priority] (Critical, High, Medium, Low). My formula always results in an error due to the pre-populated date field. Surely there's a way around this that I'm just ignorant of. It works fine in Excel, but SP pukes when I try it. TIA!
=IF([Priority]="Critical",[Created]+1,IF([Priority]="High",[Created]+3,IF([Priority]="Medium",[Created]+7,[Created]+14)))
Per my test, it works well in my SharePoint list.
1.Create a choice column named "Priority".
2.Create a calculated column, set "The data type returned from this formula is" as "Date and Time", set "Date and Time Format" as "Date Only".
=IF([Priority]="Critical",[Created]+1,IF([Priority]="High",[Created]+3,IF([Priority]="Medium",[Created]+7,[Created]+14)))
3.Result:
Can you help me to know, how can I display data in a chart only for a field of a table ?
For example, I have a table "Country" which have "France, Allemagne, Italie, ...".
In my chart, I only want to display datas from France, without any selection from the user.
Thanks for your help !
You can select certain values without user interaction with
set analysis.
Have a look at the 'QlikView Reference Manual' PDF.
Starting at page 799 you'll find the section about set analysis.
On page 801 you find the following description:
sum( {1<Region= {US} >} Sales )
returns the sales for region US disregarding the current selection.
In this case Region is the column with your country and US is the preselection.
Hope that helps
I am using Tableau desktop 8.1.
I have created a pie chart showing Shift timings and number of employees in each shift timings under different departments.
The pie chart is as follows :
Shift Timing as the "Color mark"
Count distinct employee as the "Angle mark"
I have created an action filter whereby clicking on a shift timing in the Pie chart will display another sheet which shows various details of the employee under that particular shift time.
I have used Action Filter where the field i have passed to the target filter is "Shift Time".But i am not able to add the Department Field as a target filter to the Actions Filter as tableau desktop displays an error "Missing fields on Pie chart".
I need to pass the Department also to the Action filter ( but it is not present in the pie chart) as the user might select Multiple departments from the given list of Departments and the report should show the
My requirement is that if the user selects Shift time (for e.g 9am-5pm) and four departments then upon clicking the 9am-5pm shift in the pie chart should display the details of employees under those departments.I am not able to achieve this because i am not able to pass the Department as target filter into the Action filter.
Thanks and Regards
A little bit difficult to understand without seeing your actual workbook.
If I understand correctly, you want do display a pie chart, and when I click on a segment of the pie chart, you want to display a list of employees under that segment (shift time), but you also want to filter the department.
What I would do is to create a dashboard with 2 sheets, 1 with your pie chart, and one with the employee names/ids (simply drag employee name/id field to the rows and that's all). On the second sheet I would include a filter using department field.
Back on dashboard I would go to the pie chart sheet, click on the gray triangle on the top right, and select "Use as Filter". Then I would go to the other sheet, click the same triangle, go on Quick Filters and select the department filter. And voilĂ , the user is able to filter departments on the right of your dashboard, and click on the pie segments to select a shift.
Hope it helps
I have another way to resolve this issue.
Dashboard->Action->add action - >