Good morning everyone,
I’d like to ask for your kind support for this topic. I hope to be as clear and concise as possible.
Context
I’m building a Power BI dashboard connected to IFC models via Speckle. I have three main tables:
- tBase → column
Code WBS(e.g., PO01, GA02) - tWorks → column
Codes(e.g., E01, E02,W01,C01…), each code belongs to a WBS - Query1 → IFC data from Speckle, columns:
P_WBS(PO01, GA02),P_Code(E01, E02,W01,C01), plus other parameters. SomeP_Codevalues are “N/A” or blank.
Objective
- Selecting a WBS → display the entire model for that WBS.
- Selecting a Code → the Speckle visual filters only elements matching that code.
- If a WBS has no
P_Code→ the visual still shows the whole model without errors.
Attempts Made
- Tried creating relationships between tables:
tBase[Code WBS] → tWorks[Code WBS]tBase[Code WBS] → Query1[P_WBS]tWorks[Codes] → Query1[P_Code]
Problem: either the WBS filter stopped working or circular dependencies occurred.
- Tried DAX measures with
VARandIF, usingSELECTEDVALUEto filterQuery1by WBS and Code.
- Worked for a single code selection.
- Failed with “N/A” values or WBS without codes.
- Syntax errors with semicolons/commas and aggregation errors (
Cannot determine a single value for column ...).
- Tried dynamic filtered table with
SELECTEDVALUE→ did not work for multi-selection or WBS without codes.
Goals / Questions for the Forum
- How to create a dynamic filter that:
- Filters first by WBS.
- Then filters by Code (supporting multi-selection).
- Handles missing or “N/A” values in
P_Code. - Works with a Speckle visual that does not evaluate measures in visual filters.
- Interested in alternative strategies: advanced measures, dynamically filtered tables, or passing parameters to the custom visual.