Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Below is the formula I am using on multiple columns. It will pull data from one table to another by my two Concat search coulmns (Concat Search & Column). However, I wanted to use this same formula for another column. In this case, "Completion time". I am receiving the error "Expressions that yield variant data-type cannot be useed to define calculated columns". Is there a way to use this formula to pull a date instead of a whole number?
Below is the working formula. This formula will pull the "custom" column that just contains "Yes" or "No" responses.
Below formula will not work because column "Completion time is Date/time formatted.
Solved! Go to Solution.
If the column is being added to the Affiliate List table you can try
Completion Time =
VAR CurrentColumn = 'Affiliate List'[Column]
RETURN
CALCULATE (
MAX ( 'Affiliate Submission'[Completion time].[Date] ),
REMOVEFILTERS ( 'Affiliate Submission' ),
'Affiliate Submission'[Concat Search] = CurrentColumn
)
I actually removed the If() part of the formula and they seemed to work.
The formula is as follows:
The problem is the "Not submitted". That is text whereas the actual values are datetime. You just need to use the value of the calculation as is, and if it is blank then leave it as blank.
When I remove the "Not Submitted" text, I am still receiving the same error.
If the column is being added to the Affiliate List table you can try
Completion Time =
VAR CurrentColumn = 'Affiliate List'[Column]
RETURN
CALCULATE (
MAX ( 'Affiliate Submission'[Completion time].[Date] ),
REMOVEFILTERS ( 'Affiliate Submission' ),
'Affiliate Submission'[Concat Search] = CurrentColumn
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.