This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello!
I am trying to figure out a formula but I can't seem to get it right.
I have two tables that have two different types of calls. One is showing Hardware Calls and the other is showing our In House Providers calls. Both tables have a Store Number, Call Date, and a Completion Date.
I want the formula to say if the Hardware Call Date< ( is before) In House provider Completion Date and the Hardware Completion Date> (is after) in house provider Completion Date, return the number 1.
I am trying to find out how many times the in house provider would have been able to complete hardware calls at that particular store (missed opportunity). The struggle I am running into is that these are in two different tables, the common value would be the store number in both tables. Everything I try to do this I get the error code saying there are multiple values where a single value is expected. Any help would be appreciated! Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
First as the error message show, please make sure the data type of both of your two dates columns which are used to compare are date type.
In addition, if you want to use 'AND' condition in the if statement, it should be '&&' instead of '&', '&' is used to combine two columns.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
are you able to share what code you have written?
Proud to be a Super User!
Hi @Anonymous ,
First as the error message show, please make sure the data type of both of your two dates columns which are used to compare are date type.
In addition, if you want to use 'AND' condition in the if statement, it should be '&&' instead of '&', '&' is used to combine two columns.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I made those changes and I am just getting blanks now. Is there another way to write this? I feel like crossing tables is ruining this. The Service Crew has been to all of these stores multiple times, but I only want it to return the date if it was in between the Hanging Hardware Call Date and Completion Date.
Hi @Anonymous ,
Since the columns are come from two different tables, you neeed to create measures by the previous modified formula and use a table visual in the report to show the result instead of creating a calculated column directly.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 25 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |