Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

How to implement slicer for an Alphanumeric field

I am struggling to achieve the following in Power BI Desktop (I am using DirectQuery mode) - I have a table with a column named ICC_Code which has alphanumeric values in this format:  A1, A2, A3, A4,...
  • Greg_Deckler's avatar
    7 years ago

    Might be difficult to achieve in DirectQuery mode so you might have to use a Composite Model. Generally you handles these sorts of things with disconnected tables that you use as your slicers. You grab the MAX/MIN value from each of these tables and write your measures such that they do the filtering between these values. You might be able to do it with two slicers that do not filter one another. Grab the MIN and the MAX of the table, which should represent your two "ends" and then write your measures accordingly. 

     

    But, sample data would help. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

  • Greg_Deckler's avatar
    Greg_Deckler
    7 years ago

    Anonymous, any thoughts on the work-around I presented?