The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
78 | |
77 | |
36 | |
32 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |