March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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,
Can you share us a sample file to test?
Regards,
Xiaoxin Sheng
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |