March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a matrix visual that gives me the Totals that I need for a given employee broken down by Ticket Number worked, the Hours Worked on those tickets, and the Estimated Hours for each given ticket. The totals in this example (352.97 Hours Worked and 381.25 Estimated Hours) are correct when the visual is setup like it is below.
If I remove the Ticket Number the total Hours Worked remains the same and is correct, but the Estimated Hours are incorrect. I'm assuming it's giving me the Estimated Hours for all tickets, not just the tickets worked by the selected Employee.
Is there a way to filter or group the Estimated Hours for just those tickets worked by the selected Employee without showing all the tickets individually by row?
Hi @check1 ,
Could you share the sample data and the measure you are using?
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Best Regards,
Wearsky
Hi,
Try replacing the column "Estimated Hours" with the following measure (rename any columns/table or aggregation method you find necessary):
Filtered Estimated Hours = CALCULATE( SUM('Table'[Estimated Hours]), FILTER( 'Table', 'Table'[Employee] = SELECTEDVALUE('Table'[Employee]) && 'Table'[Ticket Number] IN VALUES('Table'[Ticket Number]) ) )
Thanks @Lucas_LP . One important item I neglected to mention is these values are in two different tables. Estimated Hours and Ticket Number are in a Ticket table. Employee is in an Employee table. The tables are related, but when creating the measure you suggested I get a message "A single value for column 'Employee' in table 'Employee' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
I've tried creating this as both a measure and a calculated column with the same error.
Could you show what the Matrix visual configuration is (which columns are in which visual fields).
And which column is the table related by (please specify relation type also, such as many to one)?
Apart from that, I doubt this is the case, but if it's not yet set so, try setting the relationship direction as "both".
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |