I'm getting a strange error:
{"error":{"code":"DatasetExecuteQueriesError","pbi.error":{"code":"DatasetExecuteQueriesError","parameters":{},"details":[{"code":"DetailsMessage","detail":{"type":1,"value":"Query (18, 3) A single value for column 'Location' in table 'PS_Org_Emp' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."}},{"code":"AnalysisServicesErrorCode","detail":{"type":1,"value":"3241803789"}}]}}}
In power bi I have a relationship set, so it only provides a single value. Location is not a calculation, it is simply the Location. So I don't totally understand why this error is being triggered. Also, I have two other columns from that table that are working fine, so I don't understand why this one would trigger an error.
This is my query:
EVALUATE SUMMARIZECOLUMNS(
PS_Emp[Name], "Name",
PS_Emp[USID], "USID",
PS_Emp[Hire Date], "Hire Date",
PS_Emp[Rank], "Rank",
PS_Emp[Title], "Title",
PS_Emp[FlexTrack], "FlexTrack",
CALCULATE(sum(PS_Emp[Work Hours in Year])/2080), "FTE",
PS_Org_Emp[Market], "Market",
PS_Org_Emp[LLC LLP], "LLC LLP",
PS_Emp[Specialty], "Specialty",
PS_Emp[ECS ICS], "ECS ICS",
PS_Emp[Coach], "Coach",
PS_Emp[Solution Family], "Solution Family",
PS_Emp[SL], "Sub Solution Family",
PS_Emp[NonDCBased], "NonDCBased",
PS_Emp[CTL], "CTL",
PS_Org_Emp[Location], "Location",
FILTER(PS_Emp, PS_Emp[Status] = "Active" &&
PS_Emp[Title] <> "Partner" &&
PS_Emp[Employee Class] <> "BRWDRESORCE" &&
PS_Emp[Employee Class] <> "SUBCONTRACT")
)
In the power bi data, PS_Emp relates to PS_Org_Emp based on a one to many join:
PS_Emp:
Employee ID | Organization ID
98765 | 1.1.15
67890 | 1.1.10
34567 | 1.1.15
PS_Org_Emp
Organization ID | Location | LLC LLP | Market
1.1.15 | Baltimore, MD | LLC | Ag
1.1.10 | Boston, MA | LLC | Cereal
@Chouyeuh what kind of settings I need to ask admin to turn on?
Mine was because the setting turned off by admin of my company, if you're working in a company you can request to turn it on for you.
I am having this same error, we’re you able to figure out how to fix this?
I am having an error 'DatasetExecuteQueries' is not enabled for the tenant. as well, can anyone explain what is the root cause? I am extracting data from my own workspace
If you use Performance Analyzer on the View tab of Power BI Desktop and run a recording, it will provide the code for the visual you need. So much easier then I thought
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2