Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a formula that I am copying from the original dataset to the Archive Dataset (stores the original dataset once a week) Same table names just "Archive" added to the front of their names.
My question is how would I resolve this error when it works in the Main Dataset?
This is the calculated Column:
Solved! Go to Solution.
Hi, @Brett007
You may try the following calcualted column to see if it works.
Milestone Latest Disposition =
VAR flag =
CALCULATE (
MAX ( 'archiveddatasettable1'[Disposition #] ),
FILTER (
'archiveddatasettable1',
EARLIER ( 'archiveddatasettable1'[Milestone History Lookup] ) = 'archiveddatasettable1'[Milestone History Lookup]
)
)
RETURN
CALCULATE (
MAX ( 'archiveddatasettable1'[Milestone Disposition Status] ),
FILTER (
ALL ( 'archiveddatasettable1' ),
'archiveddatasettable1'[Disposition #] = flag
&& 'archiveddatasettable1'[Milestone History Lookup]
= EARLIER ( 'archiveddatasettable1'[Milestone History Lookup] )
)
)
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Brett007
You may try the following calcualted column to see if it works.
Milestone Latest Disposition =
VAR flag =
CALCULATE (
MAX ( 'archiveddatasettable1'[Disposition #] ),
FILTER (
'archiveddatasettable1',
EARLIER ( 'archiveddatasettable1'[Milestone History Lookup] ) = 'archiveddatasettable1'[Milestone History Lookup]
)
)
RETURN
CALCULATE (
MAX ( 'archiveddatasettable1'[Milestone Disposition Status] ),
FILTER (
ALL ( 'archiveddatasettable1' ),
'archiveddatasettable1'[Disposition #] = flag
&& 'archiveddatasettable1'[Milestone History Lookup]
= EARLIER ( 'archiveddatasettable1'[Milestone History Lookup] )
)
)
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I think we have to asume it's the LOOKUPVALUE
-> LOOKUPVALUE looks for a single value satisfying the conditions in the target table. In case the search returns multiple values, you obtain an obscure error message saying: “A table of multiple values was provided where a single value was expected”.
The data will be different in the archive data compared to the live set and there are multiple values returned.
What would you suggest I use to replace the LOOKUPVALUE? Can I add another calculation within or outside of the LOOKUPVALUE to correct this issue?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |