Forum Discussion
Using VARS with CALCULATETABLE
Could someone please explain to me why this works:
But this does NOT:
5 Replies
- AlexisOlsonSuper User
A calculated table cannot be dynamic based on user selection since calculated tables (and calculated columns) are only calculated once each time the data model is loaded or refreshed rather than in response to slicers or filters from the report page.
On the other hand, this is what measures are designed to do. So your ultimate goal is very likely possible--you just need a slightly different approach.
- Ashish_MathurSuper User
Hi,
Writing measures is the correct approach. Share some data and show the expected result.
- VahidDMSuper User
HI Roseventura
Read this :
https://radacad.com/caution-when-using-variables-in-dax-and-power-bi
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/ - AnonymousNot applicable
Hi Roseventura ,
Any updates?
You could refer to the blogs below to know How to provide sample data in the Power BI Forum and How to Get Your Question Answered Quickly
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - RoseventuraResponsive Resident
I need to submit sample data. Please do not close this issue.