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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
KylieF8439
New Member

How to show filter values that data is not empty

I have two tables.

 

Table 1: DimDate

KylieF8439_1-1727396480864.png

 

Table 2: FactStudentCount

KylieF8439_2-1727396520867.png

 

KylieF8439_4-1727396662674.png

 

I build a report using these two tables:

KylieF8439_5-1727396847697.png

The "Date" is the filter. I hope only those Date_Key values that are present in FactStudentCount table are shown in the report filter. In this example, I hope the "Date" filter in the report shows "Wednesday, 31 January 2024" and "Thursday, 29 February 2024" only.

 

How to achieve this? Thank you in advance.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @KylieF8439 ,

Use the following dax expression to create a table and establish table-to-table relationships.

Table = CALCULATETABLE(VALUES(DimDate),'DimDate'[Date_Key] IN VALUES(FactStudentCount[Date_Key]))

vzhouwenmsft_0-1727663936792.png

vzhouwenmsft_1-1727664076854.png

 

Best Regards,
Wenbin Zhou

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @KylieF8439 ,

Use the following dax expression to create a table and establish table-to-table relationships.

Table = CALCULATETABLE(VALUES(DimDate),'DimDate'[Date_Key] IN VALUES(FactStudentCount[Date_Key]))

vzhouwenmsft_0-1727663936792.png

vzhouwenmsft_1-1727664076854.png

 

Best Regards,
Wenbin Zhou

 

lbendlin
Super User
Super User

Why would you want to do this?  This goes against design guidelines.

 

How to do it:  Change your data model to make the connection go in "both" directions so that the fact table can filter the dimension table.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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