I want to have your opinion about this question: I love variables and I really appreciate the utility of them when I had to write complex measures.
But sometimes (and I don’t know and understand why) when I use a variable in a measure, this measure takes to a wrong results. Instead when I write the expression of the variable in formula, measure calculates correct results.
I bring an example, which refers to calculation of total average sales.
Hi @Matteo-Italy, we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.
Use the forum search to discover if your query has been asked before by another member.
When posting a topic with formula make sure that it is correctly formatted to preformatted text </>.
Use the proper category that best describes your topic
Provide as much context to a question as possible.
Include the masked demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.