Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Using CDS as data source to create Power BI graphs. In the data tables, there is a display column that can show the value of the choice ID selected for single-select choice columns in each row. It is created from the data source. For example,
fieldname | fieldname_display |
0 | A |
1 | B |
2 | C |
3 | D |
4 | E |
How can it be created for multi-select choices?
Such as,
fieldname(multi) | fieldname(multi)_display |
0,1 | A,B |
1,2,3 | B,C,D |
3,4 | D,E |
0 | A,B |
2,3 | C,D |
It will only display the left column, to show the choice IDs selected, with a comma to separate the values. How can it be done but to show the values of the choice IDs?
Solved! Go to Solution.
Hi @Anonymous ,
Please follow the below steps to get it, you can open the attachment to check how it works...
1. Select the table and right click "New measure" just as below screenshot
2. Write the below formula in the formula bar
FieldName_Display(Multi) =
CONCATENATEX (
FILTER ( 'Table', 'Table'[fieldname] IN ALLSELECTED ( 'Table'[fieldname] ) ),
'Table'[fieldname_display],
","
)
3. Apply the above measure onto the table visual
Best Regards
Hi @Anonymous ,
You can create a measure as below to get it, please find the details in the attachment.
FieldName_Display(Multi) =
CONCATENATEX (
FILTER ( 'Table', 'Table'[fieldname] IN ALLSELECTED ( 'Table'[fieldname] ) ),
'Table'[fieldname_display],
","
)
Best Regards
Hi @Anonymous , thanks for this solution. However my data table does not have the _display column to begin with, do you know how to create this multi choice _display column in the table?
Hi @Anonymous ,
Please follow the below steps to get it, you can open the attachment to check how it works...
1. Select the table and right click "New measure" just as below screenshot
2. Write the below formula in the formula bar
FieldName_Display(Multi) =
CONCATENATEX (
FILTER ( 'Table', 'Table'[fieldname] IN ALLSELECTED ( 'Table'[fieldname] ) ),
'Table'[fieldname_display],
","
)
3. Apply the above measure onto the table visual
Best Regards
Hi @Anonymous when we import the data columns from CDS to Power BI, it does not import the _display column. How do we create it?
User | Count |
---|---|
5 | |
4 | |
4 | |
2 | |
2 |
User | Count |
---|---|
8 | |
6 | |
4 | |
4 | |
4 |