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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jlynch
Frequent Visitor

filtering on dax table based on an expanded comma delimited column

I have succussfully expanded a comma delimited column into multiple columns in query editor using split column, and then a new column was added to lookup the name of the service.

 

then I created a new table with this dax formula:

 

ServName =
UNION(
SELECTCOLUMNS( quotes, "Serv",Quotes[Service1] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service2] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service3] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service4] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service5] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service6] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service7] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service8] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service9] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service10] )
)

 

where quotes is the name of the original table and each [Servicex] is one of the expanded service names.  this creates the single column Serv in a table called ServName.

 

I can use this to get a summary of the services offered and a percentage of all services offered but...

 

It does not change based on my report level filtering, I need to see percentages of services based on date range and quote status (won/lost).

 

How can i apply the report level filtering to this new table?

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Sounds like you are missing a relationship between this new table and your other tables.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I've tried adding a column but maybe i'm doing it in the worng place, when i try adding a column for the quote id it says a table of multipl values was supplied where a single value was expected, how can i add that quote ID column to the table function?

I'm going to need to see a bit of raw data to really be of any use to you on this one.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

table 1 - the service columns are created by spliting services provided in query editor:

Table 1 - Quotes     
      
Quote IDServices providedService 1service 2service 3service 4
15,7,9579null
25,8,2582null
34,1,8,74187

 

Table 2 is a lookup for services:

table 2 - services 
  
service idname
1design
2study
3testing
4procurment
5project management
6technical design
7feasibility
8someother
9other

 

I then use a dax formula to create a new table servname 

ServName =
UNION(
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.1] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.2] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.3] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.4] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.5] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.6] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.7] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.8] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.9] ),
SELECTCOLUMNS( quotes, "Serv",Quotes[Service Required 1_xId.10] )
)

 

where Service Required 1_xld# is equal to the service 1 and service 2 above - This new table will display the total instances of eash service, however it is not changing based on Report Level filtering, which is what I need.  specifically filtering by date range and by quote status which do work for all other visuals.  I understand there is no relationship between servName and Quotes except that's where the data comes from and it seems that the filtering would affect it.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.