The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Measure: = sum('OA TE6 Timecards' [OA TE6 Timecards.Time (Hours)]) - max('LU Project'[pse_planned_hours_c])
I wrote a measure I'm using to count all the hours on timecards in one table, and comparing that to a "Planned Hours" column to determine if the went over the allowed hours and by how much.
There are currently four projects that have an overage and the measure gives me a line for each with the right total over overage.
However, there are new lines, where each project appears four times, all columns blank, except for the project manager which is mixing up and putting each other's manager on the other projects.
I have the relationship set to project number, where the one project number in the project table links to the many timecards in the timecard table. There is a second relationship out to timecards table of another system via the same project ID relationship (one to many from project table out to both timecard tables).
I've realized that adding the project manager as a column in the visual is causing this. The PM is listed on every timecard record and I expected it to roll up in the visual. The PM is the same for every row for each project. So, why is PBI mixing them up?
@skyf Would need sample data to recreate. Do you have a separate Project Manager dimension table? Perhaps it is not related to the fact table properly?
Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.