Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
dedelman_clng
Community Champion
Community Champion

slicer on fact table not affecting "running" calculated columns/measures

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.

 

UT 1.png

 

 

 

 

 

 

 

 

 

 

 

 

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.

 

UT 3.png

 

 

 

 

 

 

 

 

 

 

 

 

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.

 

UT 6.png

 

 

 

 

 

 

 

 

 

 

 

 

I can post my measure/columns if that would be helpful.

 

Thanks!

David Edelman

 

 

1 ACCEPTED 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.

View solution in original post

5 REPLIES 5
v-shex-msft
Community Support
Community Support

Hi @dedelman_clng,

 

Can you share us a sample file to test?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

A PBIX file can be found here:

 

Uptime Report with Slicer

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.