I have the model below and I want to calculate the capacity of each assignee based on the remaining days in a Sprint.
This would be basically Users[USER_DAILY_CAPACITY] * SPRINTS[DAYS_REMAINING_IN_SPRINT] but I can't achieve this in DAX.
Data model
Ultimately I want to display the Original Effort vs Remaining effort vs Remaining capacity per assignee and filter with Sprints_Reports.SPRINT_ID .
I tried merging USER with SPRINTS using some intermediary tables and I can calculate the Remaining capacity per user, but with no direct relationship between SPRINTS and ISSUES doesn't bring the correct data if I filter with the Sprints_Reports.SPRINT_ID .
Any help would be appreciated
Related
I am trying to find the sum for defective effort but I need it to only sum distinct WorkItemId where Links.TargetWorkItem.WorkItemId is not blank
Measures I currently have:
Defective Effort = CALCULATE(SUM('Work items with direct links'[Effort]),NOT(ISBLANK('Work items with direct links'[Links.TargetWorkItem.WorkItemId])))
For the Sum in the table below (and in the chart) I am wanting the total to be 31 not 35, The Effort for ID 10829 is Getting counted twice
The problem I was having turned out to be the relationship between two tables. Created a table with only one entry for each sprint # then tied all the tables back to that table with a 1:many instead of many:many. This resolved the problem.
Thanks everyone for your help.
I'm very new to Power BI and have a couple questions that will probably be easy to all of you.
I have a table where each row is an attendance and will have a user id, so multiple rows will have the same user id for a returning user (Table example). I have then created another table from that which gives the number of attendances per user (duplicating the table and then grouping it)
I would now like to categorise those users by top 10% of attenders, 10-20% of attenders such that I can create a graph like the one below (with the y axis being number of total attendances). Any help in how to do this would be greatly appreciated.
Image of ideal graph
The original table of each attendance will also have arrival date and departure date (along with the user id). I would like to find the next instant a user attended and if that arrival date is less than 7 days after the previous departure date, flag it (mark as Y). Once again, I do not know how to do this is power bi/query.
I've spent a large portion of the day trying to figure this out and going at it from a power bi and power query approach and being confused on both. Happy to provide anymore clarifying information anyone would need :)
I have a table (Orders) that contains information about orders: User_id, Order_date and Order_price.
This table is linked to a date.table. What I would like to have is a measure that counts how many users made 1,2,3,4,5,.... orders. Basically a histogram of count of orders per user. I need to be able to filter this measure later on based on specific dates.
Maybe I don't have to realize this in a measure but in a seperate table or column? Not really sure how to proceed here. Any help is appreciated. I have created this measure using SUMMARIZE in a seperate table, but this is of course no longer sensitive to filtering by order date.
Best
If you're only trying to figure out how many instances of orders there were for each User ID you can use the formula below. As you filter you date with a slicer this will adjust accordingly. Make sure to pull User Id somewhere in your visual to show the orders by User Id.
Orders = Countrows( [Orders] )
I'm trying to create a column that has a total of values between 3 columns from 3 tables. How would I go about doing this?
The 2 tables are tables of values that share an id, and they are both linked to a table of account by Id. The goal is to add up 3 columns, and place it into a table grouped by the Id.
I've attempted summing them, trying to use the USERELATIONSHIP function, and creating a relationship between them. It seems to give very inaccurate results, as if it's summing all of the totals together, and passing them to each Id. That, or it won't let me use the column, as if it never existed.
EDIT: General Idea of what I'm trying to do (Lines should be pointing to Account's Id column, but I messed up the lines)
EDIT 2: I also forgot to illustrate or mention. There are more columns with information in each table that can't be summarized for each account preventing me from just merging the table together.
Make sure your data model looks like this (change names as you please, but the structure must be the same):
In dimensional modeling, your table "Account" is a Dimension, and both fee tables are Fact tables. The operation of combining data from multiple fact tables that share the same dimension is called "drill-across", and it's a standard functionality of Power BI.
To combine fees from these tables, you just need to use measures, not columns. This article explains the difference:
Calculated Columns and Measures in DAX
First, create 2 measures for the fees:
Fee1 Amount = SUM(Fee_1[Amount])
Fee2 Amount = SUM(Fee_2[Amount])
Then, create a third measure to combine them:
Total Fee Amount = [Fee1 Amount] + [Fee2 Amount]
Create matrix visual, and place Account_ID from the Account table on the rows. Then drop all these measures into the matrix values area, like this:
Result:
Of course, you don't have to have all these measure in the matrix, I just showed them for your convenience, to validate the results. If you remove them, the last measure still works:
I am working on a report that has data by month. I have created a measure that will calculate a cost per unit which divides the sum of dollars by the sum of production volume for the selected month(s):
Wtd Avg = SUM('GLData - Excel'[Amount])/SUM('GLData - Excel'[Production])
This works well and gives me the weighted average that I need per report category regardless of if I have one or multiple months selected. This actual and budget data is displayed below:
If you take time to total the actual costs you get $3.180. Where I am running into trouble is a measure to sum up to that total for a visual (This visual does not total sadly). Basically I need to sum the aggregated values that we see above. If I use the Wtd Avg measure I get the average for the total data set, or .53. I have attempted another measure, but am not coming up with the correct answer:
Total Per Unit Cost = sumX('GLData - Excel','GLData - Excel'[Wtd Avg])/DISTINCTCOUNT('GLData - Excel'[Date])
We see here I return $3.186. It is close, but it is not aggregating the right way to get exactly the $3.180:
My Total Per Unit Cost formula is off. Really I am simply interested in a measure to sum the post aggregated Wtd Avg measure we see in the first graph and total to $3.180 in this example.
Here is my data table:
As you probably know already, this is happening because measures are dynamic - if you are not grouping by a dimension, they will compute based on the overall table. What you want to do is to force a grouping on your categories, and then compute the sum of the measure for each category.
There are 2 ways to do this. One way is to create a new table in Power BI (Modeling tab -> New Table), and then use a SUMMARIZE() calculation similar to this one to define that table:
SUMMARIZE('GLData - Excel',[Category],[Month],[Actual/Budget],"Wtd Avg",[Wtd Avg])
Unfortunately I do not know your exact column names, so you will need to adjust this calculation to your context. Once your new table is created, you can use the values from that table to create your aggregate visual - in order to get the slicers to work, you may need to join this new table to your original table through the "Manage Relationships" option.
The second way to do this is via the same calculation, but without having to create a new table. This may be less of a hassle. Create a measure like this:
SUMX(SUMMARIZE('GLData - Excel',[Category],[Month],[Actual/Budget],"Wtd Avg",[Wtd Avg]),[Wtd Avg])
If this does not solve your issue, go ahead and show me a screenshot of your table and I may be able to help further.