Skip to content

Commit a9df144

Browse files
DMV - update measure extraction query for CL < 1200 (#98)
Updated the DMV measure extraction query to exclude all measures where MEASUREGROUP_NAME (TABLE_NAME) is empty, instead of explicitly excluding only measures where name is "__Default Measure". This update will also exclude the "__No measures defined" system measure that exists in data models with compatibility level prior to 1200 (verified in PowerPivot with a compatibility level 1103)
1 parent 3e60133 commit a9df144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dax.Model.Extractor/DmvExtractor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ KPI_TREND AS KPI_TREND_UNIQUE_NAME
368368
MEASURE_UNIQUE_NAME,
369369
[DESCRIPTION]
370370
FROM $SYSTEM.MDSCHEMA_MEASURES
371-
WHERE MEASURE_NAME <> '__Default measure'
371+
WHERE TRIM(MEASUREGROUP_NAME) <> ''
372372
ORDER BY MEASUREGROUP_NAME";
373373
const string QUERY_FORMATSTRINGS = @"
374374
SELECT

0 commit comments

Comments
 (0)