Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
Could you suggest an aquivalent for TOTALYTD() function in DirectQuery mode?
This should work with Date Slicer selection.
Thanks,
Amit
Solved! Go to Solution.
You can try to click "File"->"Options and settings"->"Options"->"DirectQuery"->check "allow unstricted measures" to enable TOTALYTD.
Do mind the that using the unstricted measures would affect performance in DirectQuery mode.
CALCULATE (
SUM ( Table[Column] ),
FILTER (
ALL ( Calendar ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
&& YEAR ( 'Calendar'[Date] ) = YEAR ( MAX ( 'Calendar'[Date] ) )
)
)
this also works only when I enable unrestricted option in power bi desktop. will it still work on power bi portal or azure portal?
Do we need to enable same thing in that case and from where I can do it?
You just publish and don't have to change anything in Power BI Service.
You can try to click "File"->"Options and settings"->"Options"->"DirectQuery"->check "allow unstricted measures" to enable TOTALYTD.
Do mind the that using the unstricted measures would affect performance in DirectQuery mode.
thanks I could use it after the option is enabled.
I need to publish this on Azure portal, will it still work. Do I need to also enable this option anywhere else?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |