Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Need help with Line & Clustered Column Chart

Hi Everyone, I'm relatively new to the BI platform and was hoping to get some help with a project I am working on. I can't disclose a lot of detail but will try to provide enough information to hope...
  • samdthompson's avatar
    4 years ago

    Hello, I have some similar stuff I have to do around pricing. To tackle it i use two measures:

     

    CustomerPrice = SUM(DataTable,DataTable[Price])

    ComparisonPrice = CALCULATE([CustomerPrice], ALL(DataTable]))

     

    I can then show the customers on the bars and the comparison as a line. You may want to be more nuanced about the comparison line ie you do want to vary regionally or some such. In that case it might be something like:

     

    ComparisonPrice =

    CALCULATE([CustomerPrice],FILTER(ALL(Customer),Customer[Region]=SELECTEDVALUE(Customer[Region]))).
     
    Hope this points you in the right direction anyway.