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
drivero
Helper I
Helper I

Sort list in Tabular Editor - Measure

Hello,

 

I have a measure with contains a list of values for each month:

 

VAR septiembre = CALCULATE(
    [KPI_general],
   filter( ALL('DWH DimDate'), 'DWH DimDate'[Month_Name_Short] = "Sep" &&'DWH DimDate'[Year]=selectedvalue('DWH DimDate'[Year]))
)

VAR octubre = CALCULATE(
    [KPI_general],
   filter( ALL('DWH DimDate'), 'DWH DimDate'[Month_Name_Short] = "Oct" &&'DWH DimDate'[Year]=selectedvalue('DWH DimDate'[Year]))
)

var _list = {enero, febrero, marzo, abril, mayo, junio, julio, agosto, septiembre, octubre}

 

How i can sort the _list from Max to Min value?

I would like to stablish values from 1 to 12, from low to high.

 

thank you

0 REPLIES 0

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.

Top Solution Authors