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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
zqcebtmu
New Member

Last Date of Timeline Slicer

Hi,

 

I'm trying to create a calculated column which calculates hours between a start date and the last date of my timeline slicer. Any ideas? I'm using a date table for my slicer and everytime I try to find the last date, it populates with the last date in the date table without the timeline slicer filter applied. I.e. last date of date table = today and timeline slicer is selected to show September data only. When I call LASTDATE('dates'[date]), I get today's date instead of September 30.

 

Thank you,

 

Tim

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @zqcebtmu

calculated column and calculate table can't be affected by any slicer. you could create a measure instead of column.

 

Notice:

1. Calculation column/table not support dynamic changed based on filter or slicer. (So sum(table[column]) will return fixed value)
2. Measure can be affected by filter/slicer, so you can use it to get dynamic summary result.

 

here is reference:

https://community.powerbi.com/t5/Desktop/Different-between-calculated-column-and-measure-Using-SUM/t...

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

 

Best Regards,
Lin

Best Regards,
Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @zqcebtmu

calculated column and calculate table can't be affected by any slicer. you could create a measure instead of column.

 

Notice:

1. Calculation column/table not support dynamic changed based on filter or slicer. (So sum(table[column]) will return fixed value)
2. Measure can be affected by filter/slicer, so you can use it to get dynamic summary result.

 

here is reference:

https://community.powerbi.com/t5/Desktop/Different-between-calculated-column-and-measure-Using-SUM/t...

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

 

Best Regards,
Lin

Best Regards,
Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.