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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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