Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Grouping Data That Does Not Exist In The Table(s)

Hi,   New to Power BI but loving it so far! I have a question about grouping options in a field in the table. The data source I am working with is a massive BO data dump from BO and placed into a...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi Anonymous - 

    You could make a new Calculated Column in your table, which parses the portion of the string to group on. For example:

     

    Parsed = MID(<TableName>[<ColumnName>], 7, 3)
     
    Then, add Parsed to a Slicer visual, if you want to filter a certain value. Or add Parsed to any visual, for that matter.
     
    Hope this helps,
    Nathan
  • jtownsend21's avatar
    jtownsend21
    7 years ago

    I think you are headed in the right direction with a separate table. You could do 2 tables, one for odd and one for even or a combined (see below). You then just need to create the relationship with your other table and then use the fields from the new table as your slicer(s).

     

    Value     Category

    001            Odd

    002            Even

    003            Odd

    004            Even

  • Anonymous's avatar
    Anonymous
    7 years ago

    I think jtownsend21 has a good start for your dimension table. Add as many descriptive attributes as you can think of, including the full code that is being parsed.

  • Anonymous's avatar
    Anonymous
    7 years ago

    So yup....the answer is a combonation.

     

    Just to follow up with what worked in it's entirety for the thread...

    I found on the SharePoint where the data table exists of what all the possible options are and fetched that dataset as well.

     

    In that table I parsed the field I needed parsed and grouped as I wanted.

     

    Then I link the two tables together by the appropriate field and ka-boom! My reports show me what I was looking for.

    Thanks to both of you guys for leading me down that path!! Awesome forum!