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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mrslyfox911
Advocate III
Advocate III

Comma-separated expression

Hello,

 

I need expression for my PowerBI Paginated report.
Dataset name: RequestedInstances

Field 1: Instance

Field 2: Count_Instances

I need a comma-separated list of all values 'Instance'

 

For the current expression, I have an error:

The 'Value' expression for the text box 'Textbox22' refers directly to the field 'Instance' without specifying a dataset aggregate. When the report contains multiple datasets, field references outside of a data region must be contained within aggregate functions which specify a dataset scope.

 

Expression: =Join(Fields!Instance.Value, ", ")

 

2 REPLIES 2
M_nwadibia
Resolver III
Resolver III

Can you try this. What this does is to add comma separator to 2 or more digit number but keeps single digits as they are

IIf(Len(CStr(Fields!Column_Name.Value))>1, Join(Split(CStr(Fields!Column_Name.Value),""),","), CStr(Fields!Column_Name.Value))

mrslyfox911
Advocate III
Advocate III

report header allows only static data, for that reason workaround was applied to the dataset

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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