Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Understanding Agg tables

I am trying to get my head around using agg tables to improve DirectQuery response times.   Following guides by Microsoft, Radacad and others I have created a very basic model with a Fact table (As...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Your comment actually did help, problem seems to just be down to curly braces { 🤔😵 }.  I have never really noticed nor cared before that they are added around the Id text values for some reason by DirectQuery:  Direct Query adding curly brackets to Test GUID Fi... 

     

    Since the Agg table is in Import mode it's ProjectId values lack the curly braces.  So any query hitting the Agg table gets no matches for that relationship (queries on the Fact table that don't hit the agg table use the Fact table Ids which still have braces and so work fine)

     

    Solution is adding braces to the Agg table ProjectId (or setting up the Agg in DQ mode but who would want that?)

     

    Would appreciate any further info as this soaked up a lot of time even though the fix is a simple one. Is this just a bug or is there a good reason for the additional characters?