- Create a new measure group table via a blank query to organize dynamic user context measures.
- Use the Value.NativeQuery() function to select one blank column, give the table a name such as Dynamic User Measures, and disable the include in report refresh property.
let DynamicMeasureTbl = Value.NativeQuery(AdWorksProd, "Select 0 as dummy") in DynamicMeasureTbl
- In the report view, hide the blank column (dummy) and set the home table of a measure to this new table.
Dedicated measure group table for new dynamic measures
- The new measure group table can be hidden from report view when development and testing is complete