Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all. First of all thank you for your help!
Let me explain to you my current situation:
Ideally I should use the calendar table from my database in terms of performance (The further the better, the join field would be an id rather than a date field, etc) but I'm facing the following issue:
That's why I'm wondering if:
Thanks in advance!
Not totally clear on your scenario. Unless your source calendar table has special columns in it, I would just make two DAX calendar tables that uses MIN and MAX from your fact table inside the CALENDAR function. FYI on an article/video that provides DAX (and M) calendar table expressions that also include columns that do not require a sort by column.
No Sort Date Tables! – Hoosier BI
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks Pat!
I was thinking about using DAX/M but tried to use the calendar table from my database to improve the performance, but thank you! I'll use your DAX script
About my scenario maybe I didn't explain it well enough:
Tha main thing would be: How could I filter the calendar table based on another table stored in Power BI and not in the database? I could make it but the performance was so bad and the time to refresh increased a lot.
Thanks!
Are you making your 2nd date table with DAX or M? If M, do you have enable parallel loading enabled (turn off if so you are not pulling your data twice from the database)? Also, is the date table from your source also related to your fact table (min to max)? If so, you could use the min/max from the calendar table instead.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Pat, thanks for your answer! About your points:
Does it help? Thanks in advance
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.