The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
)
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |