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, sorry first time here and a PowerBI newbie.
I want to compare 2 columns, from different tables in PowerBI. They are joined by Unique-ID. I have tried the following:
Solved! Go to Solution.
Hi @Necrosis1968 ,
According to your statement, I think your error may be caused that you use 'report this month'[Unique ID] directly in your code to create the calculated column.
This error occurs because Power BI is unable to determine which row of data to use in a calculation among multiple rows of data.
Here I create a sample and I can reproduce your issue.
Last Month:
This Month:
Error:
I suggest you to try code as below.
Resolved = IF ('report last month'[Unique ID] in VALUES('report this month'[Unique ID]), "No", "Yes")
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Necrosis1968 ,
According to your statement, I think your error may be caused that you use 'report this month'[Unique ID] directly in your code to create the calculated column.
This error occurs because Power BI is unable to determine which row of data to use in a calculation among multiple rows of data.
Here I create a sample and I can reproduce your issue.
Last Month:
This Month:
Error:
I suggest you to try code as below.
Resolved = IF ('report last month'[Unique ID] in VALUES('report this month'[Unique ID]), "No", "Yes")
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That worked! Thank you so much!
You have written a measure (which requires an aggregation). Are the 2 different tables related? This is what powerbi uses to work out the measure.
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 |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |