The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
I'm facing a problem with comparing to columns.
so what basically happens when I create a conditional column is that it compares a row with it corresponding row in the other column.
however, I need to compare a single values from the first column with all values fro the second column until it finds a match, else "New"
I will add an example just to clarify it more.
if "web Developer" ( in 'Actual Jobs') = 'Career Path Jobs'
then 'Career Path Jobs'
Other "New"
But as I said, it only compares a singles row while I want it to iterate on all 'Career Path' Column until it finds a match.
Solved! Go to Solution.
@Anonymous
Create the following column:
@Anonymous
Create the following column:
@Anonymous , Try a new column like
if(not(isblank(LOOKUPVALUE([Actual Jobs], [Career Path Jobs],[Actual Jobs]))),"New" ."Career Path Jobs")
or
new column =
var _1 =[Actual Jobs]
return
if( countx(filter(search(_1,[Career Path Jobs],,0)>0),[Career Path Jobs])+0=0,"New" ."Career Path Jobs")
I tried applying those two solutions but they are comparing Career Pth jobs colomns with itself.
@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Yes, sure!
https://drive.google.com/file/d/1wUp8rbTvrO1qLaVb0BE-bZhRyIC7sq5f/view?usp=sharing
here is a link to the excel sheet
mainly the concept is when there is a match between the first and the second coloumn then write the 'Career path job'
else write "New"
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
67 | |
52 | |
50 |
User | Count |
---|---|
121 | |
120 | |
78 | |
63 | |
62 |