简体   繁体   中英

How to sort filter values in descending order in SSAS tabular pivot?

I have a calendar table in my SSAS Tabular model with a "Risk Month Name" column sorted by "Risk Month Number" column.

在此处输入图像描述

Having that config gives me month names sorted in the ascending order in the connected pivot table.

在此处输入图像描述

I'm trying to sort month names in the pivot filter in descending order.

I understand that I can create an extra calculated column with some values already sorted in the descending order and use this column as a sorting column for the "Risk Month Name" values. But doing this feels wrong and extra complicated for such a simple requirement.

Is there any setting to do it in a proper way?

If you change your RiskMonthNumber column to have a negative sign in front of it the sort order should reverse as you are expecting. If RiskMonthNumber is visible to users then create another hidden column for this purpose.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM