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.
Hello,
I am trying to adjust my Switch statemnt so that I do not have to tediously input vlaues when I have to update the dashboard. Above line "3" is my old logic. Line "5 " begins my new logic, where I am trying to say if the code = 1003, and the LOS O/E is < [P95] (which is coming from another table) then return "P95".
Here is the [P95] column
The error I get says "A single value for column "P95" cannot be determind.
The relationbetween the tables are many to many (*:*) and being cross filtered in both directions.
Hi @RSMIT221
1. You creating a calculated column in a table and referencing another column in another table without aggregation which not allowed. If you need to access the row level of another table you need to iterate that table using FILTER or X-Aggregators or any iteration function.
2. Referencing measures in the formula of a calculated column is not a good practice.
I think you have an error in your code
Try in the end [Viz Q and A ref code] =1003 && [LOS O/E] <=('Los Baseline and percentile rank'[P95]), "95")
As you see you missed a bracket
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 |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |