Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Re: DAX To Split into Rows on Delimeter

@Lewis-H  Sir you are the new DAX God! 🙂 This worked like a charm for my case. I had created a comma separated "Data discrepency Alerts" using Calculated column and the Alerts then needed to be split them into Rows! Your solution is all I had to look at. THANK YOU SO MUCH! This should be documented, blogged!

Helper III
Helper III

Re: DAX To Split into Rows on Delimeter

I have successfully used a DAX expression from Chris Webb - its a bit "complicated" but performance is quite good:
A New Approach To Handling SSRS Multi-Valued Parameters in DAX Queries 

VAR OrderList = "SO43713|SO43758|SO43784|SO43821"
VAR OrderCount =
    PATHLENGTH ( OrderList )
VAR NumberTable =
    GENERATESERIES ( 1, OrderCount, 1 )
VAR OrderTable =
        VAR CurrentKey = [Value]
            ROW ( "Key", PATHITEM ( OrderList, CurrentKey ) )
VAR GetKeyColumn =
    SELECTCOLUMNS ( OrderTable, "Key", [Key] )
VAR FilterTable =
    TREATAS ( GetKeyColumn, FactInternetSales[SalesOrderNumber] )
    CALCULATETABLE ( FactInternetSales, FilterTable )

Helpful resources

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors