Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I want to create a measure or calculated column (I don't know what is needed between these two) that displays me all the values of a given column in a table or other chart. How can I write this function?
I have created this measure
sales = selectcolumns(ART, ART[vend]) but if I try to put this measure in the table, no value is displayed.
How can I fix this?
thanks!
This is because I imported the tables with direct query, but I want to divide certain columns and measures into categories. And the 'only way to do that, is to create calculated measures or columns and put them in folders/categories.
Solved! Go to Solution.
Hi @Anonymous ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Chage the measure like this
Measure = SELECTCOLUMNS('Table',"Part",SELECTEDVALUE('Table'[Part]))
Final output
You can refer to this document
SELECTCOLUMNS function (DAX) - DAX | Microsoft Learn
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Chage the measure like this
Measure = SELECTCOLUMNS('Table',"Part",SELECTEDVALUE('Table'[Part]))
Final output
You can refer to this document
SELECTCOLUMNS function (DAX) - DAX | Microsoft Learn
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
You cannot store a multiple values in a single cell. The way to do it is do a ConcatenateX function
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |