Forum Discussion
"Compressed Stream" error with Analyze in Excel
- 2 years ago
Try Export to Excel with live connection and see if you get the same error.
- 2 years ago
So this one is a bit beyond my DX skills (lack thereof).
I stripped it back so I can get the syntax down to just two columns:
DEFINE VAR __DS0Core =SUMMARIZE('WCO','WCO'[No.],'WCO'[MHI Claim Date]) VAR __DS0BodyLimited = TOPN(500000,__DS0Core,'WCO'[No.],1,'WCO'[MHI Claim Date])EVALUATE __DS0BodyLimited ORDER BY 'WCO'[No.], 'WCO'[MHI Claim Date]
I changed it to this:
DEFINE VAR __DS0Core =SELECTCOLUMNS(SUMMARIZE('WCO','WCO'[No.],'WCO'[MHI Claim Date]),'WCO'[No.],"No.",'WCO'[MHI Claim Date],"Claim Date") VAR __DS0BodyLimited = TOPN(500000,__DS0Core,'WCO'[No.],1,'WCO'[MHI Claim Date]) EVALUATE __DS0BodyLimited ORDER BY 'WCO'[No.], 'WCO'[MHI Claim Date]
But then I get
Pretty sure I just have a peice of the syntax in the wrong spot.
So this one is a bit beyond my DX skills (lack thereof).
I stripped it back so I can get the syntax down to just two columns:
DEFINE VAR __DS0Core =SUMMARIZE('WCO','WCO'[No.],'WCO'[MHI Claim Date]) VAR __DS0BodyLimited = TOPN(500000,__DS0Core,'WCO'[No.],1,'WCO'[MHI Claim Date])EVALUATE __DS0BodyLimited ORDER BY 'WCO'[No.], 'WCO'[MHI Claim Date]
I changed it to this:
DEFINE VAR __DS0Core =SELECTCOLUMNS(SUMMARIZE('WCO','WCO'[No.],'WCO'[MHI Claim Date]),'WCO'[No.],"No.",'WCO'[MHI Claim Date],"Claim Date") VAR __DS0BodyLimited = TOPN(500000,__DS0Core,'WCO'[No.],1,'WCO'[MHI Claim Date]) EVALUATE __DS0BodyLimited ORDER BY 'WCO'[No.], 'WCO'[MHI Claim Date]
But then I get
Pretty sure I just have a peice of the syntax in the wrong spot.
you got the SELECTCOLUMNS syntax backwards.
EVALUATE SELECTCOLUMNS(SUMMARIZE ( 'WCO', 'WCO'[No.], 'WCO'[MHI Claim Date] ),"No.",[No.],"Claim Date",[MHI Claim Date])