cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Michaelbean21
Advocate I
Advocate I

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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors