Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a fact table for "IT Outages" which joins to a date dimension table for "Date" on a single direction. On this date dimension table I have made a number of calculated columns and measures to visualize the running total for "uptime" over the year (as an area graph). I have also done measures to show the current YTD uptime as of the last refresh.
When I add a slicer and put in the "affected system" values from the fact table, the "single point in time" measures (e.g. YTD uptime as of today) correctly recalculate/display, but the graph visual is unchanged.
If I change the relationship to be a "both", then neither one visual works correctly (top right - YTD Outage Time). I think this is because there is not an outage every day, so the dates that contibute to many of the columns/measures are excluded. The measure that is correct only pulls from the fact table.
I can post my measure/columns if that would be helpful.
Thanks!
David Edelman
Solved! Go to Solution.
After working on this for a while longer, I realized that I should have been using measures instead of calculated columns. Once I changed the data used in the "values" of the line chart from a column to a measure, the filters worked correctly.
The cross-filter join needs to be single-directional still in order for the graphs to pick up all of the values from the "Date" table.
Hi @dedelman_clng,
Based on test, I find the TOTALYTD function will be affect by filter, you should modify your measure which use the TOTALYTD function to ignore the filter, for example:
Before: RunningUpTime = TOTALYTD(sum('Date'[UptimeMin]), 'Date'[Date]) After: RunningUpTime = SUMX(Filter(all('Date'),[Date]>=Date(year(max([date])),1,1)&&[date]<=max([Date])),'Date'[UptimeMin])
Then modify the "cross filter direction" to both.
Regards,
Xiaoxin Sheng
I have tried your suggestion but the behavior is no different. The graphs are still starting at and only taking into account those dates with a matching outage.
After working on this for a while longer, I realized that I should have been using measures instead of calculated columns. Once I changed the data used in the "values" of the line chart from a column to a measure, the filters worked correctly.
The cross-filter join needs to be single-directional still in order for the graphs to pick up all of the values from the "Date" table.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |