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
cubadrum
New Member

Date slicer filter doesn't work with dates from SSAS Cube?

Hello,
I worked on a report with Excel as a data source, my time filters became a cool Date Slicers filters. (I guess because it is modeled with Date format).
But when I work with the perspective of an SSAS cube, my date fields no longer behave the same, it stays like a simple list filter.

Is this enhancement of date slicers compatible with data from an SSAS cube?

 

Regards.

1 ACCEPTED SOLUTION

Hi @cubadrum,

 

When we retrieve data from the keyColumns, it use the NameColumn data type actually. In your scenario, I would suggest you set the data type for the ValueColumn as Date type. Then place Date.value field in the slicer visual.

 

58AAAFC9.PNG

 

q1.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
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

9 REPLIES 9
gusmundo
New Member

Accepted answer is for Tabular SSAS models as multidimensional SSAS models do not make use of Power BI date filtering.

v-qiuyu-msft
Community Support
Community Support

Hi @cubadrum,

 

It seems that you connect to the SSAS cube in Import mode, and place the date field in a slicer. The slicer only provide List and Dropdown modes, right?

 

Based on my test, the issue is caused by that date field is converted to TEXT data type automatically when connecting to SSAS cube in import mode. We need to change it to Date data type then Between, Before, After modes will be available in the slicer. 

 

q1.PNGq2.PNGq3.PNG

 

Best Regards,
Qiuyun Yu

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

Hello @v-qiuyu-msft,

Thanks for the reply!!
I forgot to comment that I use the "Connect Live" option to connect to the cube. Using this option I see that the options to modify the data type are disabled.
In the cube, the field is set as a date, but in Power BI desktop, it does not take this configuration.

 

Captura.PNG

 

 

Captura1.PNG

 

 

 

 

Regards.

 

 

Hi @cubadrum,

 

When we retrieve data from the keyColumns, it use the NameColumn data type actually. In your scenario, I would suggest you set the data type for the ValueColumn as Date type. Then place Date.value field in the slicer visual.

 

58AAAFC9.PNG

 

q1.PNG

 

Best Regards,
Qiuyun Yu

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

Hi @v-qiuyu-MSFT,

 

I have changed the basic setting Type attribute to Calendar->Date.

Also, i have set key column to Int, Name column to WChar and Value column to Date datatypes.

I am still unable to see any additional measure 'with an extension ".Value" in power Bi desktop.

 

The things that i have tried so far are:

1. Changing Name fields format to yyyy-MM-dd.

2. Including Value field as date. 

3. Changing Value field's format to yyyy-MM-dd.

4. Removing Name column and just retaining key and value columns.

 

None of these seem to work on my SSAS multidimensional cube.

 

 Regards,

Chetan A.

Anonymous
Not applicable

Does anybody have a solution to this? 

I cant see the .value columns, is this some hidden setting when doing a live connection to SSAS?

Any other workarounds?

 

Regards

Jon

 

Anonymous
Not applicable

So it turns out it wont display the value property if its part of a hierarchy.

Once I turned on hieararchy to visible for the date key, it popped up with the value.

Mystery solved.

Anonymous
Not applicable

This worked for me! Thanks!

Awesome @v-qiuyu-msft
This resolved my problem. Thanks.

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.