The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have two tables.
Table 1: DimDate
Table 2: FactStudentCount
I build a report using these two tables:
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.
Solved! Go to Solution.
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]))
Best Regards,
Wenbin Zhou
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]))
Best Regards,
Wenbin Zhou
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.