I have a linear regression trend line. Pop it on the chart and it works great. However if I want a card for a subset of that trend it behaves differently as that subset will produce different values. (Its the context of the number of months - this shapes the trend)
I think I need to create the trend and predicted sales as per my chart but then sum a subset .
In Dax Studio I got as far as the code below. If I could get the total value of Banana from __DSCCore this would give me the answer.
Hope that makes sense. Any suggestuions gratefully received.
E
DEFINE
VAR __YearOffset = TREATAS({-1, 0, BLANK()}, ‘dim Year’[Year offset])
Hi @ells, 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.