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.
I eneryone!
This report is formed by 3 tables (date1 (dimension table of date 1), fact_table and date2 (an independent dimension table of dates)).
So that it is shown a table with the last 20 days once selected an specific date on date slicer, the fields of time on slicers are those in date2 and the field of date in table 2 is from date1. In this way as the following example.
If I select 20 April, 2023, and I do click in any company on table1 (for example first row in green ruta1 company A), appears automatically last 20 days for this route and company in table2 with the amount calculated in the following way:
Some companies have amount every day and therefore we can see all LAST 20 dates, but the problem is when others companies have data one day yes and one day no, as this example. For this reason, although last 20 days are from 1 to 20 of April, just show dates with data. I would like to have something like this, although data does not exist:
I got to see all dates clicking here ("show elements without data":
, but the problem is that all dates existing on dimension table DATE1 appears... from 01/01/2021 to 31/12/2023...
I would like just to see last 20 dates, not all dates...
Please, could you help me with it.
Thank you so much for all your support.
Thank you!
Hi everyone!
To get this functionality, I had to create a view with a cross join of the table having available all dates for each route and company and make a coalesce, if the value exists then value, else 0. The problem now is the performance, but it is a question of trying to improve the query to make it more efficient.
Thank you all for your support.
You can put a visual level filter to have your visual only display the last 20 days.
Hi Syk,
it does not work. When I make this filter on this table 2, anything is shown because it takes last days until today, As I have filtered 20 April on slicers, when I apply this filter, table2 is empty.
I have tried to limit this table creating another table with a range of dates between max value of date (in this case would be 20 April) and min date (in this case 20 April -20 ) but it does not work neither...
Thank you for your help
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 |
---|---|
107 | |
105 | |
79 | |
69 | |
62 |
User | Count |
---|---|
142 | |
105 | |
103 | |
85 | |
70 |