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
Michaelbean21
Advocate II
Advocate II

Creating a dynamic time period filter / dynamic date series based on filtered date.

Hi there I am trying to create a generated series in the "Data" view that changes based on selected filter values.

I start by getting the selected year and month using the "SELECTEDVALUE" function: 

Michaelbean21_0-1656433798284.png


I then create a selected date value, by combining my year and month using the formula below:

Michaelbean21_1-1656433830990.png

However when trying to create my generated series I get this error message for the selected date value:

Michaelbean21_2-1656433867682.png



Does anyone know how to fix this error?

 

 



 

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

Hi @Michaelbean21 ,

 

The COMBINEVALUES() fuction returns the value which is text type. Try to use the DATE() function.

And in the 'Data view', the data will not be changed dynamically. The calculated table or the calculated column are static. While the meaure is dynamic.

Calculated Columns and Measures in DAX - SQLBI.

 

 

Best Regards,

Stephen Tao

 

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-stephen-msft
Community Support
Community Support

Hi @Michaelbean21 ,

 

The COMBINEVALUES() fuction returns the value which is text type. Try to use the DATE() function.

And in the 'Data view', the data will not be changed dynamically. The calculated table or the calculated column are static. While the meaure is dynamic.

Calculated Columns and Measures in DAX - SQLBI.

 

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.