Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear members,
Ok this is my first post, so, I don't know yet how to upload my example file, so I'll try to explain the problem as clearly as possible, but it all comes down to not understanding the way the filtering works and how to get the desired info, easily.
So, I have the following 6 tables:
The 6 tables are properly linked together.
In the page in the report section, I enabled a filter for the first employee and a filter for a date range.
So, I made a table in the report section with the following columns:
The measure mentioned under 5), has the following DAX code
Invoice amount without Employee filter = CALCULATE( SUM('Invoice lines'[Invoice amount]), ALL(Employees[Employee Name]), Categories[Categorynumber] = "01")
With the current configuration, I retrieve a table in which only the rows for the first employee are visible, but the rows are not limited to the clients that the first employee wrote time for. Instead it returns all clients that have invoice lines with category number "01".
In my example, there is only one client for which the first employee did not write time for, but in my actual model, it returns multiple lines that are not relevant for the employee, because he did not write time on those clients.
So, what I wanted to retrieve, was a table with the clients for employee 1 with the hours written and amount chargeable that is related to employee 1, compared to the total invoiced amount for that specific client of which the invoice lines only refer to category number "01", but instead of only calculating the invoiced amount that relates to employee 1, it should represent the invoiced amount for all employees.
Of course when I export the table to Excel and manually the lines that I don't need, is also an option, but that is not as smooth as I would prefer, because I would prefer a way to compile the complete desired table without the excess rows that are not relevant for employee 1.
So, anyone who has a working solution/method?
Solved! Go to Solution.
Put a filter on the visual to only show rows where the total hours is > 0.
Sometimes, it can be so easy.... I tried filters on the page, but that did not work. putting the filter on the visual level, did the trick. Thank you!
Put a filter on the visual to only show rows where the total hours is > 0.
User | Count |
---|---|
23 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |