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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.