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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Multiple Sort Month Columns based on Slier selection

Hi All,
I have a very interesting request from client, we have a Financial Month and Client columns as the slicer drop down list, Now the client wants to sort the financial Month based on the client selection.
we have more then 30+ clients and every client have their different financial Start Month as seen in the below screenshot.
For Example: As seen in the Screenshot if the user select Client 1 the Month should start from Mar likewise Client 2 is selected the Month should start Jun etc. I want to create a dynamic column to sort the financial month.
Any Help would be appreciated. Thanks
Regards
Suhel

Screenshot.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@v-frfei-msft 

 

Thnak you for the soultion

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please check the following steps as below.

 

1. Create a calculated column as below.

monno = 
SWITCH (
    Table1[Fin Month],
    "Jan", 1,
    "Feb", 2,
    "Mar", 3,
    "Apr", 4,
    "May", 5,
    "Jun", 6,
    "Jul", 7,
    "Aug", 8,
    "Sep", 9,
    "Oct", 10,
    "Nov", 11,
    "Dec", 12
)

2. Create a measure to get the excepted result.

 

Measure = 
VAR sel =
    SELECTEDVALUE ( 'Table'[Client 1] )
VAR a =
    CALCULATE (
        MAX ( Table1[monno] ),
        FILTER (
            ALL ( Table1 ),
            Table1[Client 1] = sel
                || Table1[Client 2] = sel
                || Table1[Client 3] = sel
                || Table1[Client 4] = sel
                || Table1[Client 5] = sel
        )
    )
RETURN
    IF ( MAX ( Table1[monno] ) >= a, 1, 0 )

Capture.PNG

 

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

@v-frfei-msft 

 

Thnak you for the soultion

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.