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
jjck
Regular Visitor

How to Combine Data from Multiple Columns in DAX - For use in a Slicer

I am trying to create a slicer that can select which increase in percentage (or just the base value) is represented in all visuals/cards for a single page. They need to be categorized by Order ID in order for me to filter by other field (such as business sector, date of order, etc.). 

 

I know how to do this in Excel, but I want the page to be replicable by someone else once I transfer out of the department, so having a DAX code they could copy and paste when they refresh the dashboard is really what I'm after here. 

 

An example of the data I currently am working with is below:

Order IDBase Value2%3%5%
1100102103105
2300306309315
3150153154.5157.5
4200204206210

 

 

 

Any advice would be extremely helpful, and deeply appreciated. 

 

Thanks in advance, 

jjck

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @jjck 

Pick ID and Base value in PowerQuery, then select Unpivot Other Columns.

vyohuamsft_0-1719370731966.png

vyohuamsft_1-1719370750317.png

Select Apply. Then create a new column, use the following dax:

CombinedColumn = COMBINEVALUES ( "|", 'Table'[Order ID], 'Table'[Attribute] )

vyohuamsft_2-1719370830736.png

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @jjck 

Pick ID and Base value in PowerQuery, then select Unpivot Other Columns.

vyohuamsft_0-1719370731966.png

vyohuamsft_1-1719370750317.png

Select Apply. Then create a new column, use the following dax:

CombinedColumn = COMBINEVALUES ( "|", 'Table'[Order ID], 'Table'[Attribute] )

vyohuamsft_2-1719370830736.png

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

WishAskedSooner
Continued Contributor
Continued Contributor

I am not a Power BI expert, but my gut tells me you are going about this the wrong way using a bunch of calculated columns. In my opinion, a more robust solution would be to create a separate table with the various percentage increases. You can load this easily into a slicer and then create measures for your visuals using SELECTEDVALUE. This also offers the added benefit of adding more increases easily (e.g. 2.5%, 7%, etc.) versus having to expand out the number of calculated columns in your Orders table. My 2 cents.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.