Forum Discussion
Filter is not working in Direct query mode
- 9 years ago
Enabling below option did not work. Below is our DAX query -
MTD_Avg_Balance_Debt = TOTALMTD([Sumprin Debt],v_get_TransDate[TransDate])/(DATEDIFF(STARTOFMONTH(v_get_TransDate[TransDate]),max(v_get_TransDate[TransDate]),DAY)+1)
Works on desktop version, howver doesnt work once published to sever
Power BI
Please try again later or contact support. If you contact support, please provide these details.
Hi,
Did you find any solution for this??
Please update, even I am facing same issue.
Regards,
Gourangi
- MikeDonnellan8 years agoAdvocate I
Hi all, this issue is not solved as of May 25, 2018. We are using Power BI Report Server and the matching version of Power BI Desktop dated March 2018.
When we deploy a DirectQuery mode report containing measures like this, with "Allow unrestricted measures in DirectQuery mode" duly enabled
LatestCumulativeVarToTarget =
CALCULATE (
VALUES ( 'NonAffiliatedOutletSales'[CumulativeVarToTarget] ),
FILTER (
'NonAffiliatedOutletSales',
'NonAffiliatedOutletSales'[CalculateDate]
= MAX ( 'NonAffiliatedOutletSales'[CalculateDate] )
)
)and "Save As" to Power BI Report Server, when the report is rendered visuals that use such measures display with the circled X and text "Can't display the visual. See details." The details message is:
Couldn't load the data for this visualMdxScript(Model) (44, 5) Function 'FILTER' is not supported in this context in DirectQuery mode.Please try again later or contact support. If you contact support, please provide these details.Request ID853cc794-8cff-8af9-364f-1d1d6b1a7ec7TimeFri May 25 2018 08:37:41 GMT-0400 (Eastern Daylight Time)Version15.0.2.378Not solved.
Is this the expected behavior?
- bboy819058 years agoFrequent Visitor
I also have the same problem when I used directquery mode. On the other hand, in import mode, this measure is working.
LatestTurbidity = CALCULATE(MAXA(MsgJamhamTest1[Value]), FILTER(MsgJamhamTest1,[Type]="Turbidity"&&[UpdateTime]=MAX([UpdateTime])))