Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hello everyone, I have the following case.
I need to visualize to zero the records that do not appear in the fact table, of the hours that the employee dedicates to the project.
But when I perform that measurement, it shows me all the projects that I have in the data model and does not filter me according to the employee I have selected, and I do not know how to do it to show only the projects that belong to that employee.
if you can help me, I thank you.
This is the model.
if you see in the matrix on the right, the projects in which the employee participates, there are 3.
However, to my extent, it takes out all the projects I have in the model.
The measurement I'm using to paint the data to zero is as follows.
The data is very basic.
Calendar table.
Employees table.
The FACT table, which stores the hours spent per day on the project.
and finally the projects table, which has the project data.
It is an example model, or to share the info with you.
Greetings I thank you for any help.
I don't like how to share pbix, or excel, I'm new to this. if you tell me I share it.
Thanks again.
Hi @Anonymous,
Did these records really exist in your tables? If they are not included in your table records, you need to use a calendar table with Dax expression to expand the records.
In addition, zero value will auto removed in the chart and other graphs visualization. If you want to display zero value records, please use table visuals instead.
Regards,
Xiaoxin Sheng
Usually in such scenarios (when you want to show data that is not there) you need to create a cross join between your dates table and your employees table, and then use measures to calculate if there's a value at the intersection or a zero.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
111 | |
96 | |
90 | |
79 | |
67 |
User | Count |
---|---|
153 | |
125 | |
114 | |
111 | |
95 |