Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have two tables (task and date):
task table
Date table
They do not have relationship between them
My Virsualization : A matrix which shows the allocation% by person by date.
Measure: If the date in the range of the task start date and end date, sum the allocation% of the tasks.
My problem: When I click the "4%" , it should only show the first line in the table below. Because it is the only line fits that spot. However, it shows all the lines related to "Frank".
Please help me how could it only shows the relevant lines. Thank you!
Solved! Go to Solution.
Hi @Anonymous
With your data structured as it is, you can create a measure to use as a visual level filter on the table visual.
Task Date Filter = VAR MinDate = MIN ( 'Date'[Date] ) VAR MaxDate = MAX ( 'Date'[Date] ) RETURN CALCULATE ( INT ( NOT ISEMPTY ( task ) ), task[startdate] <= MaxDate, task[enddate] >= MinDate )This measure effectively applies the date filter from the Date table (defined by min & max date) to the task table, (in the same was as your existing measure does), and returns 1 if there are any rows of task that overlap this date range.
Attached PBIX illustrates this - I more-or-less recreated your model with the sample data you posted.
Regards,
Owen
Hi @Anonymous
With your data structured as it is, you can create a measure to use as a visual level filter on the table visual.
Task Date Filter = VAR MinDate = MIN ( 'Date'[Date] ) VAR MaxDate = MAX ( 'Date'[Date] ) RETURN CALCULATE ( INT ( NOT ISEMPTY ( task ) ), task[startdate] <= MaxDate, task[enddate] >= MinDate )This measure effectively applies the date filter from the Date table (defined by min & max date) to the task table, (in the same was as your existing measure does), and returns 1 if there are any rows of task that overlap this date range.
Attached PBIX illustrates this - I more-or-less recreated your model with the sample data you posted.
Regards,
Owen
Hi @OwenAuger ,
I am surprised you solved my question so quickly. I tired on my local file and it works! Thank you so much!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |