Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
15 | |
13 | |
11 | |
9 | |
8 |