Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi all,
I have this PBI expression that I am working on here:
and what I would like to have is:
in CountryWithSkill - to have each country separately and not in 1 line
in CountriesWithoutSkill - to have each country separately and not in 1 line ( these are the countries that doesn't have that skill )
in CountriesWithSkill - to have each country separately and not in 1 line ( these are the countries that also have the respective skill )
I am available if more information is needed.
Appreciate everyone who would be able to advise.
Thank you,
Boris
Solved! Go to Solution.
I managed to split the table CountriesWithoutSkill into a new column and then applied page filters to see only what is relevant
I managed to split the table CountriesWithoutSkill into a new column and then applied page filters to see only what is relevant
Hi @ManchevB ,
Maybe you can modify formula like below:
SkillsCountriesTable =
ADDCOLUMNS(
VALUES('Skills Data'[SkillName]),
"CountryWithSkill",
CALCULATETABLE(
VALUES('Employees'[CountryName]),
'Skills Data'[SkillName] = EARLIER('Skills Data'[SkillName])
),
"CountriesWithSkill",
CALCULATETABLE(
VALUES('Employees'[CountryName]),
'Skills Data'[SkillName] = EARLIER('Skills Data'[SkillName])
),
"CountriesWithoutSkill",
EXCEPT(
VALUES('Employees'[CountryName]),
CALCULATETABLE(
VALUES('Employees'[CountryName]),
'Skills Data'[SkillName] = EARLIER('Skills Data'[SkillName])
)
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
If you do not want them in a single linem then why are you using the CONCATENATEX() function? Share some data to work with, explain the question and show the expected result.
Hi @ManchevB ,
It looks like the issue is that your CONCATENATEX function is combining all countries into a single line, but you want each country listed separately, presumably one per row.
To achieve this, you don’t need to use CONCATENATEX at all, as it is meant for combining values into a single text string. Instead, you can create separate tables or adjust your data model.
Here’s a solution:
Modify Your DAX to Create Separate Rows
SkillsCountriesTable =
SELECTCOLUMNS(
CROSSJOIN(
VALUES('Skills Data'[SkillName]),
VALUES('Employees'[CountryName])
),
"SkillName", 'Skills Data'[SkillName],
"Country", 'Employees'[CountryName],
"HasSkill",
IF(
'Employees'[CountryName] IN
CALCULATETABLE(
VALUES('Employees'[CountryName]),
'Skills Data'[SkillName] = EARLIER('Skills Data'[SkillName])
),
"Yes",
"No"
)
)
Please mark this post as solution if it helps you. Appreciate Kudos.
Thanks for the suggestion, I am aiming to have 3 columns:
in CountryWithSkill - to have each country separately and not in 1 line
in CountriesWithoutSkill - to have each country separately and not in 1 line ( these are the countries that doesn't have that skill )
in CountriesWithSkill - to have each country separately and not in 1 line ( these are the countries that also have the respective skill )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |