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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have the following code that works (VAR X = CONCATENATEX(Table, Table[Column] & " - " & Table[Column], "; ", [Table Column], DESC) ---however sometimes my result looks like this:
Ex. 1: Client ABC - 0; -; or
Ex. 2: -;
Basically it tries to concatenate data from one column (description) based off of the id from another column (id) - but while it matches on the id the description column is blank... So I get the ugly -; without anything following it.. So how can I check first whether there's an actual value before attempting to concatenate.. I'm new to DAX so don't know the syntax at all.
Thanks,
I simply want to check if current row Table[Column] is blank, null, etc. before doing this step: Table[Column] & " - " & Table[Column], "; ", [Table Column].... Need syntax...
Solved! Go to Solution.
@arelf27 wrote:
I have the following code that works (VAR X = CONCATENATEX(Table, Table[Column] & " - " & Table[Column], "; ", [Table Column], DESC) ---however sometimes my result looks like this:
Ex. 1: Client ABC - 0; -; or
Ex. 2: -;
Basically it tries to concatenate data from one column (description) based off of the id from another column (id) - but while it matches on the id the description column is blank... So I get the ugly -; without anything following it.. So how can I check first whether there's an actual value before attempting to concatenate.. I'm new to DAX so don't know the syntax at all.
Thanks,
I simply want to check if current row Table[Column] is blank, null, etc. before doing this step: Table[Column] & " - " & Table[Column], "; ", [Table Column].... Need syntax...
Try to apply a filter to the table.
New_Measure = CONCATENATEX ( FILTER ( 'Table', 'Table'[description] <> BLANK () && 'Table'[id] <> BLANK () ), 'Table'[description] & "-" & 'Table'[id], ";", 'Table'[description], ASC )
@arelf27 wrote:
I have the following code that works (VAR X = CONCATENATEX(Table, Table[Column] & " - " & Table[Column], "; ", [Table Column], DESC) ---however sometimes my result looks like this:
Ex. 1: Client ABC - 0; -; or
Ex. 2: -;
Basically it tries to concatenate data from one column (description) based off of the id from another column (id) - but while it matches on the id the description column is blank... So I get the ugly -; without anything following it.. So how can I check first whether there's an actual value before attempting to concatenate.. I'm new to DAX so don't know the syntax at all.
Thanks,
I simply want to check if current row Table[Column] is blank, null, etc. before doing this step: Table[Column] & " - " & Table[Column], "; ", [Table Column].... Need syntax...
Try to apply a filter to the table.
New_Measure = CONCATENATEX ( FILTER ( 'Table', 'Table'[description] <> BLANK () && 'Table'[id] <> BLANK () ), 'Table'[description] & "-" & 'Table'[id], ";", 'Table'[description], ASC )
Thanks, this is exactly what I needed.
Thanks using Filter did the trick!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |