Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Filter visual using related table

I have two tables, one is a calendar and the other is a list of job posting details. I am calculating the date a job posts is over a certain age, then using the calendar can make a trend chart showing how many aged posts there is month on month.

 

Table 1 looks like so *

Job Req       Responsibility    Open Date    Aged Date    Close Date    

R12345  

Standard14/05/202224/05/202221/05/2022
R98623Niche14/05/202224/05/202210/06/2022
R23789Standard17/05/2022 23/05/2022
R10398Standard01/06/202211/06/202221/06/2022

 

And the Calendar is a list of dates with some calculations

Date                Aged Count      
24/05/20222
25/05/20220
26/05/20220
27/05/20221

 

Using the Calendar date on the X-axis and Aged Count on the Y-axis I can create a bar chart showing the count of aged jobs per day.

I have created a relationship between the Calendar and Table 1 using the date column, however I am unable to add the Responsibility as a filter to the visual. How do I get the relationship to work where I can use the Responsbility as a filter for the chart made off the Calendar?

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

 

NickolajJessen is right, disciplined modeling is the beginning of everything good. 

I changed the calculated column to measure and created slicer and filter, please check the PBIX file.

vcgaomsft_0-1656579527695.png

The PBIX file is attached for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Anonymous
Not applicable

Thank you for this however this captures the static date an even happens, whereas I'm trying to capture daily records over a period of time, a position that ages on 1/5/22 and closes on 6/5/22 would be counted on the 1st, 2nd, 3rd, 4th, 5th and 6th of the month. Upon reflection I see the question didn't outline this particularly clearly.

NickolajJessen
Solution Sage
Solution Sage

Well, the calendar table should be used as a calendar and nothing more. Making businesslogic calculated column on the calendar table is a big no-no.

The filter isn't woking, because you probably have a one-to-many relationship on your calendar to your table1 (As you should) but that means, that reponsibility from the downhill table (table1) does NOT filter the uphill table (calendar)

Do it in a measure in stead of a calculated column.
As a general rule: Make all calculation in measure, unless you can articulate a good and valid reason for not doing so.

If this post solves your problem, accept it as a solution
Appreciate your kudos

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors