The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I am fairly new to using Power BI.
I am currently working on some employee production reports in Power BI.
I have a table that contains the Employee, Activity, Production, etc.
I have another table that has a list of all of the different activities and the target number for those activities.
I have their relationship linked on activity.
In my report. I want to have a bullet chart that is filtered by department and using the target number in the table that I talked about above.
The problem is that the target number seems to be summing (or averaging, min, max, etc) all of the target numbers in the table so the target number stays the same irregardless of the activity that is selected.
What would be the best way to get these target numbers to filter correctly?
Any help would be greatly appriciated.
Thank you.
Solved! Go to Solution.
I figured out my problem. It had to do with how I was filtering the data. I needed to use the "Activity" from the target data instead of the one from the actual data to filter the data on. Once I made that change it worked.
Any way that you can post sample data or, better yet, the PBIX you are using?
I created a mock up PBIX with the same problem but could not figure out how to upload it.
Here is what the data looks like. It is loaded as a csv into Power BI then I create a measure Dividing measureQty by Hours to get the rate that will be shown in the bullet chart.
The Department Average Employee is calculated when the csv is created. There are also actual employee numbers but I did not include them as examples.
Let me know if you need anything else. I am not sure what is enough to provide and I shouldn't include everything since it is semi sensitive information.
workDate | Employee Name | deptName | DeptCode | Activity | Worked WG3 Code | measureQty | hours | EmployeeType |
11/1/2017 0:00 | * Department Avg * | Equipment | 14 | East - Replenishment Pick - 60 | 169 | 596 | 9.25 | * Department Avg * |
11/1/2017 0:00 | * Department Avg * | Equipment | 14 | East - Returns Putaway CTN - 17 | 171 | 81 | 3.25 | * Department Avg * |
11/1/2017 0:00 | * Department Avg * | Inventory | 15 | East - Cycle Count - | 101 | 1130 | 11.25 | * Department Avg * |
11/1/2017 0:00 | * Department Avg * | Inventory | 15 | East - Cycle Count Bulk - | 186 | 1634 | 10.75 | * Department Avg * |
This is what the Target data table looks like it is also loaded as a csv. It is linked by activity.
Activity | Target |
East - Cycle Count - | 65 |
East - Cycle Count Bulk - | 55 |
East - Replenishment Pick - 60 | 60 |
East - Returns Putaway CTN - 17 | 35 |
Thank you.
I figured out my problem. It had to do with how I was filtering the data. I needed to use the "Activity" from the target data instead of the one from the actual data to filter the data on. Once I made that change it worked.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
79 | |
78 | |
47 | |
39 |
User | Count |
---|---|
147 | |
115 | |
65 | |
64 | |
53 |