Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everybody,
Here's my data model :
There is several joins between my fact table and my dimensions ones. The first one is between GRP_AFFAIRE and ID_CLIENT and the others are between all the DATE_* fields and ID_DATE.
Now, I want to display a Slicer element on my dashboard that will contain the field YEAR (ANNEE in my Date dimension). The problem is that when I made my sql database, I've integrated dates from 01/01/1900 to 01/12/2100 as I wanted to have an exhaustive dimension. When I put the slicer with the year field on my dashboard, I have years from 1900 to 2100 that appears.
How can I manage to display only years that are present on my fact table (like a sort of inner join between facts and date_dim) ?
Thanks in advance
Solved! Go to Solution.
Hi @meyer,
Please add a calculated column in your date dimention table. Then, add this new column to slicer, this way, the slicer will display only years that are present on fact table.
Existing Year = LOOKUPVALUE ( myFact[Date].[Year], myFact[Date].[Year], 'Date Dim'[Year] )
Best regards,
Yuliana Gu
Hi @meyer,
Please add a calculated column in your date dimention table. Then, add this new column to slicer, this way, the slicer will display only years that are present on fact table.
Existing Year = LOOKUPVALUE ( myFact[Date].[Year], myFact[Date].[Year], 'Date Dim'[Year] )
Best regards,
Yuliana Gu
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
144 | |
72 | |
63 | |
52 | |
49 |
User | Count |
---|---|
208 | |
91 | |
62 | |
59 | |
56 |