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.
Good
Currently, we use a calendar table containing years from 1999 to 2100. We have detected that this generates problems when filtering a year, since they come out of the table every year.
I am proposing ways to filter the calendar table, but I would not be able to say which is the most correct and if there would be any better option.
I have contemplated the following cases:
Could you help me? I think there has to be a simpler and more optimal way to do that.
Hi @Syndicate_Admin ,
Consider using the FIRSTDATE and LASTDATE functions, the former returning the minimum value of the parameter column in the current filtering context, the latter returning the maximum value (note that the date is represented internally as a floating point number).
Also the best data model needs to be considered. And for Bi-Directional Cross Filter should be used with caution.
Understand star schema and the importance for Power BI - Power BI | Microsoft Docs
Bi-directional Cross Filtering in Power BI: What is it & How does it Work? (powerbiconsulting.com)
If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |