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
Note the far right column is what I am trying to return.
My current code looks like this:
Solved! Go to Solution.
Hi @nickc_innova
Please refer to attached sample file with the solution
Previous Worker Value =
CALCULATE (
SUM ( 'Table'[Value] ),
TREATAS ( { 'Table'[Previous Worker] }, 'Table'[Assigned Worker] ),
ALLEXCEPT ( 'Table', 'Table'[Job Id] )
)
Hi,
I assume you want to create a calculated column.
Please check the below picture and the DAX formula.
Previous Worker Value CC =
LOOKUPVALUE (
Data[Value],
Data[Assigned Worker], Data[Previous Worker],
Data[Job ID], Data[Job ID]
)
This results in an error. "A table of multiple values was supplied where a single value was expected".
For some Jobs, the assigned worker is reported more than once with different values. So, when looking up the previous worker, we get more than one result.
... need some way to summarize values where job and assigned worker or previous worker match
Hi @nickc_innova
Please refer to attached sample file with the solution
Previous Worker Value =
CALCULATE (
SUM ( 'Table'[Value] ),
TREATAS ( { 'Table'[Previous Worker] }, 'Table'[Assigned Worker] ),
ALLEXCEPT ( 'Table', 'Table'[Job Id] )
)
@tamerj1, thank you so much! Not only did you provide a perfect solution but you also introduced me to something new. I did not know about the TREATAS function. Very interesting.
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 |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |