Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I have created a measure:
Date marker = VALUES(tblVisit[MaxDate])
The measure produces the correct result.
I want to use the measure inside an IF function in a new column (in a different table), something like:
IF(tbl[Date]>[Date marker],"y","n")
This gives me an error: 'A table of multiple values was supplied where a single value was selected'.
If I hard code a date everything works fine:
IF(tbl[Date]>DATE(2018,04,01),"y","n")
Is anyone able to let me know why using the measure does not work?
Cheers,
Mark
Solved! Go to Solution.
Hello,
Thanks for the reply. I have sorted the issue out - my problem was driven by a number of issues, the largest of which was that my date measure was formatted as text!!
Thanks again.
Cheers,
Mark
From what I can tell, Date Marker is being used to return a list of dates. When you enter your IF statement, you are checking if tbl[DATE] is greater than your list of dates. Since you haven't provided a method of aggregation of that list, Power BI is unsure what you are trying to do.
The points I would raise here are:
Hello,
Thanks for the reply. I have sorted the issue out - my problem was driven by a number of issues, the largest of which was that my date measure was formatted as text!!
Thanks again.
Cheers,
Mark
Hello,
Thanks for the reply. I have sorted the issue out - my problem was driven by a number of issues, the largest of which was that my date measure was formatted as text!!
Thanks again.
Cheers,
Mark
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |